forked from NorkzYT/Wolflith
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·42 lines (39 loc) · 975 Bytes
/
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
# Installation: https://hub.docker.com/_/traefik
version: '3.9'
services:
traefik:
image: traefik:v2.11.1
container_name: traefik
ports:
- 8001:80
- 44301:443
- 8181:8080
environment:
- CF_DNS_API_TOKEN=${TRAEFIK_CF_DNS_API_TOKEN}
- CLOUDFLARE_EMAIL=${TRAEFIK_CLOUDFLARE_EMAIL}
- DOMAIN=${TRAEFIK_DOMAIN}
- DOCKER_NETWORK=${DOCKER_NETWORK}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./config/:/etc/traefik/
restart: unless-stopped
depends_on:
- dockersocket
networks:
- proxy
dockersocket:
container_name: dockersocket
image: tecnativa/docker-socket-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- proxy
environment:
- CONTAINERS=${DOCKERSOCKET_CONTAINERS}
- POST=${DOCKERSOCKET_POST}
privileged: true
restart: unless-stopped
networks:
proxy:
driver: bridge
external: true