Files
selfhosting/traefik/docker-compose.traefik-local.yml
T

48 lines
1.1 KiB
YAML
Raw Normal View History

2021-11-01 20:26:33 +01:00
version: '3'
services:
traefik:
2021-11-14 16:26:57 +01:00
container_name: traefik-local
2022-03-05 14:59:24 +01:00
image: traefik:v2.5.3
profiles: ["testing"]
2021-11-01 20:26:33 +01:00
ports:
- 80:80
- 443:443
2021-11-06 15:58:13 +01:00
- 8080:8080
2021-11-01 20:26:33 +01:00
expose:
- 8080
2021-11-06 15:58:13 +01:00
labels:
- traefik.enable=true
2021-11-01 20:26:33 +01:00
networks:
2021-12-12 12:02:11 +01:00
- dmz
- baikal-frontend
- blog-frontend
- deluge-frontend
- dokuwiki-frontend
- glances-frontend
- netdata-frontend
- photo-frontend
- portainer-frontend
- posteio-frontend
- seafile-frontend
- selfoss-frontend
- shaarli-frontend
- wallabag-frontend
- wwww-frontend
2021-11-01 20:26:33 +01:00
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
2021-11-12 11:13:16 +01:00
- ${ROOT_INSTALL}/selfhosting/traefik/traefik.yml:/etc/traefik/traefik.yml
- ${ROOT_INSTALL}/selfhosting/traefik/tls.yml:/etc/traefik/tls.yml
2021-11-01 20:26:33 +01:00
- certs:/etc/ssl/traefik
reverse-proxy-https-helper:
image: alpine
command: sh -c "cd /etc/ssl/traefik
&& wget traefik.me/cert.pem -O cert.pem
&& wget traefik.me/privkey.pem -O privkey.pem"
volumes:
- certs:/etc/ssl/traefik
volumes:
certs: