-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
75 lines (63 loc) · 1.94 KB
/
docker-compose.prod.yml
File metadata and controls
75 lines (63 loc) · 1.94 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
services:
traefik:
image: traefik:v3.4
container_name: traefik
restart: unless-stopped
env_file: .env.prod
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--log.level=DEBUG"
- "--accesslog=true"
- "--api.dashboard=true"
- "--api.insecure=true"
- "--ping=true"
- "--ping.entrypoint=health"
- "--entrypoints.health.address=:8082"
ports:
- "${DOCKER_APP_EXPOSE_PORT}:80"
- "8080:8080"
- "8082:8082"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- internal
labels:
- "com.centurylinklabs.watchtower.enable=true"
watchtower:
image: containrrr/watchtower:latest
container_name: watchtower
restart: unless-stopped
command:
- "--label-enable"
- "--interval"
- "30"
- "--cleanup"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# - ~/.docker/config.json:/config.json:ro
networks:
- internal
client:
image: ghcr.io/imjustnon/comcamp37-server:latest
restart: unless-stopped
env_file: .env.prod
labels:
- "com.centurylinklabs.watchtower.enable=true"
# Treafik Base Config
- "traefik.http.routers.client.service=client"
- "traefik.enable=true"
- "traefik.http.routers.client.rule=${DOCKER_PROXY_HOST}"
- "traefik.http.routers.client.entrypoints=web"
- "traefik.http.services.client.loadbalancer.server.port=${APP_PORT}"
# Treafik Health Check Config
- "traefik.http.services.client.loadbalancer.healthcheck.path=/health"
- "traefik.http.services.client.loadbalancer.healthcheck.interval=5s"
# - "traefik.http.middlewares.api-ratelimit.ratelimit.burst=2500"
# - "traefik.http.routers.client.middlewares=api-ratelimit"
networks:
- internal
networks:
internal:
driver: bridge