-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yaml
52 lines (48 loc) · 1.33 KB
/
docker-compose.prod.yaml
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
services:
backend:
image: shampiniony/mts-backend:latest
restart: unless-stopped
labels:
- traefik.enable=true
- traefik.http.routers.backend.entrypoints=https
- traefik.http.routers.backend.rule=Host(`api.%DOMAIN%`)
- traefik.http.routers.backend.tls.certresolver=letsEncrypt
- traefik.http.services.backend.loadbalancer.server.port=8000
networks:
- traefik
frontend:
image: shampiniony/mts-frontend:latest
restart: unless-stopped
ports:
- 3000:80
labels:
- traefik.enable=true
- traefik.http.routers.frontend.entrypoints=https
- traefik.http.routers.frontend.rule=Host(`%DOMAIN%`)
- traefik.http.routers.frontend.tls.certresolver=letsEncrypt
- traefik.http.services.frontend.loadbalancer.server.port=80
networks:
- traefik
traefik:
image: traefik:3.0
container_name: traefik
restart: unless-stopped
security_opt:
- no-new-privileges:true
ports:
- 80:80
- 443:443
networks:
- traefik
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.yaml:/traefik.yaml:ro
- ./ssl:/ssl
- ./logs:/logs
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
networks:
traefik:
external: true