-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.build.prod.yml
More file actions
58 lines (49 loc) · 1.48 KB
/
docker-compose.build.prod.yml
File metadata and controls
58 lines (49 loc) · 1.48 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
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
client:
build:
context: .
dockerfile: Dockerfile.prod
args:
DATABASE_URL: ${DATABASE_URL}
restart: unless-stopped
env_file: .env.prod
labels:
# Treafik Base Config
- "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