homeserver/docker-compose/traefik/docker-compose.yml.j2
mg a213f0b88b docker-compose: = --> : (#513)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: #513
2023-04-20 14:50:33 +02:00

31 lines
709 B
Django/Jinja

version: '3'
services:
######## traefik ########
traefik:
container_name: "traefik"
image: traefik:latest
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.yml:/etc/traefik/traefik.yml
- ./file-provider.yml:/etc/traefik/file-provider.yml
- acme_data:/etc/traefik/acme
networks:
- traefik
ports:
- "80:80" # HTTP
- "8081:8080" # Web-GUI
- "443:443" # HTTPS
- "2222:2222" # SSH
environment:
TZ: Europe/Berlin
labels:
com.centurylinklabs.watchtower.enable: true
######## Networks ########
networks:
traefik:
external: true
######## Volumes ########
volumes:
acme_data: