-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (53 loc) · 1.49 KB
/
docker-compose.yml
File metadata and controls
58 lines (53 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: '3'
services:
traefik:
image: traefik:v1.7-alpine
restart: always
command: --api --docker
ports:
- "80:80"
- "443:443"
- "127.0.0.1:8080:8080" # The Web UI (enabled by --api)
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik/traefik.toml:/traefik.toml
- ./traefik/acme.json:/acme.json
container_name: "traefik"
networks:
- traefik
watchtower:
image: v2tec/watchtower
restart: always
container_name: "portainer-watchtower"
command: --cleanup turniere-frontend turniere-backend traefik
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- traefik
frontend:
image: registry.gitlab.com/turniere/turniere-frontend/production:deploy
restart: always
container_name: "turniere-frontend"
env_file:
- 'turniere-frontend.env'
labels:
- "traefik.frontend.rule=Host:your.domain.here" # Enter your frontend domain here
- "traefik.port=80"
- "traefik.docker.network=traefik"
networks:
- traefik
backend:
image: registry.gitlab.com/turniere/turniere-backend/production:deploy
restart: always
container_name: "turniere-backend"
env_file:
- 'turniere-backend.env'
labels:
- "traefik.frontend.rule=Host:your.domain.here" # Enter your backend domain here
- "traefik.port=3000"
- "traefik.docker.network=traefik"
networks:
- traefik
networks:
traefik:
driver: bridge