-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (31 loc) · 1.03 KB
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (31 loc) · 1.03 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
services:
mockups-mpc:
build: .
container_name: mockups-mpc
restart: unless-stopped
volumes:
- ./data:/app/data
environment:
- BASE_URL=${BASE_URL}
labels:
- "traefik.enable=true"
- "traefik.docker.network=${TRAEFIK_NETWORK}"
- "traefik.http.routers.mockups-http.rule=Host(`${SITE_DOMAIN}`)"
- "traefik.http.routers.mockups-http.entrypoints=web"
- "traefik.http.routers.mockups-http.service=mockups"
- "traefik.http.routers.mockups-https.rule=Host(`${SITE_DOMAIN}`)"
- "traefik.http.routers.mockups-https.entrypoints=websecure"
- "traefik.http.routers.mockups-https.tls.certresolver=cloudflare"
- "traefik.http.routers.mockups-https.service=mockups"
- "traefik.http.services.mockups.loadbalancer.server.port=8000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 5s
retries: 3
networks:
- traefik
networks:
traefik:
name: ${TRAEFIK_NETWORK}
external: true