-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (35 loc) · 1004 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
version: '3'
services:
traefik:
restart: always
image: eugenmayer/traefik:2.x
ports:
- 80:8080
- 443:8443
- 8000:8000
environment:
TRAEFIK_ACME_ENABLE: 'true'
TRAEFIK_ACME_CHALLENGE: 'dns'
TRAEFIK_ADMIN_SSL: 'false'
TRAEFIK_ADMIN_ENABLE: 'false'
TRAEFIK_ACME_CHALLENGE_DNS_PROVIDER: '${TRAEFIK_ACME_CHALLENGE_DNS_PROVIDER}'
TRAEFIK_ACME_CHALLENGE_DNS_CREDENTIALS: '${TRAEFIK_ACME_CHALLENGE_DNS_CREDENTIALS}'
### basic provider setup
TRAEFIK_HTTPS_ENABLE: 'only'
TRAEFIK_DOCKER_ENABLE: 'true'
TRAEFIK_DOCKER_EXPOSEDBYDEFAULT: 'false'
volumes:
- certs:/mnt/certs
- filestorage:/mnt/filestorage
- acme:/mnt/acme
# mount our docker socket so our docker container can be discovered
- /var/run/docker.sock:/var/run/docker.sock
volumes:
certs:
filestorage:
acme:
networks:
default:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: ${MTU:-1500}