-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
31 lines (30 loc) · 976 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
version: '2'
services:
updateDuckDNSIP:
# used to update duckdns
# if you have a static IP, yu can comment this out
# using busybox due to it having an image for almost every platform
image: busybox
command: /bin/sh -c "while true; do wget -O - 'https://www.duckdns.org/update?domains=${DUCKDNS_SUBDOMAIN}&token=${DUCKDNS_TOKEN}&ip='; sleep 300; done"
restart: always
traefik:
image: traefik:v1.7.9
environment:
- DUCKDNS_TOKEN=${DUCKDNS_TOKEN}
ports:
- "80:80"
- "443:443"
restart: always
command:
- "--api"
- "--debug"
- "--acme.domains=*.${DUCKDNS_SUBDOMAIN}.duckdns.org,${DUCKDNS_SUBDOMAIN}.duckdns.org"
- "--configfile=/config/traefik.toml"
volumes:
- ./config:/config
- ./rules:/rules
nginx:
#used purely for tests purposes
#chose nginx because it has a image for almost every platform
image: nginx
restart: always