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

50 lines
1.2 KiB
YAML
Raw Normal View History

2022-03-05 15:03:09 +01:00
version: '3.8'
2021-11-01 20:26:33 +01:00
services:
2022-03-06 12:56:40 +01:00
traefik-local:
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
2022-03-06 12:56:40 +01:00
traefik-reverse-proxy-https-helper:
container_name: traefik-reverse-proxy-https-helper
2021-11-01 20:26:33 +01:00
image: alpine
2022-03-05 15:17:25 +01:00
profiles: ["testing"]
2021-11-01 20:26:33 +01:00
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: