-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 1.33 KB
/
docker-compose.yml
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
services:
proxy-service:
image: traefik:v2.9
ports:
- 80:80
- 443:443
# - 8080:8080
networks:
- vicchi-backend
command:
- --configFile=/etc/traefik/traefik.yml
labels:
- traefik.enable=true
- traefik.http.routers.dashboard.rule=Host(`${TRAEFIK_HOST:?Site host not defined}`)
- traefik.http.routers.dashboard.service=api@internal
- traefik.http.routers.dashboard.tls.certresolver=reverse-proxy
- traefik.http.routers.dashboard.middlewares=auth
- traefik.http.middlewares.auth.basicauth.usersfile=/etc/traefik/users
environment:
- CF_API_EMAIL=${CLOUDFLARE_EMAIL:?CloudFlare email not defined}
- CF_API_KEY=${CLOUDFLARE_API_KEY:?CloudFlare API key not defined}
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./data-stores/proxy/acme:/etc/acme
- ./etc/traefik/dynamic:/dynamic
- ./etc/traefik/users:/etc/traefik/users
- ./etc/traefik/static/traefik.yml:/etc/traefik/traefik.yml
portainer-agent:
image: portainer/agent:2.16.2
ports:
- 9001:9001
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
networks:
- vicchi-backend
networks:
vicchi-backend:
external: true