-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.31 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
services:
traefik:
image: traefik:v3.1
container_name: traefik
command:
- --api.insecure=true
- --api.dashboard=true
- --providers.docker=true
- --providers.docker.exposedByDefault=false
- --entrypoints.web.address=:80
ports:
- "80:80" # Public HTTP entrypoint
- "8081:8080" # Traefik dashboard/API (mapped to host 8081)
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped
networks:
- traefik
whoami:
image: traefik/whoami
container_name: whoami
labels:
- traefik.enable=true
- traefik.http.routers.whoami.rule=Host(`whoami.localhost`)
- traefik.http.routers.whoami.entrypoints=web
networks:
- traefik
restart: unless-stopped
traefiklens:
build: .
container_name: traefiklens
ports:
- "${TRAEFIKLENS_PORT:-8000}:${TRAEFIKLENS_PORT:-8000}" # TraefikLens dashboard
volumes:
- ./configuration.yml:/app/configuration.yml:ro
environment:
FLASK_ENV: production
TRAEFIKLENS_PORT: ${TRAEFIKLENS_PORT:-8000}
TRAEFIKLENS_REFRESH_INTERVAL: ${TRAEFIKLENS_REFRESH_INTERVAL:-5}
depends_on:
- traefik
restart: unless-stopped
networks:
- traefik
networks:
traefik:
name: traefik
driver: bridge