homeserver/docker-compose/traefik/docker-compose.yml.j2
Michael Grote 15c0099f91
All checks were successful
ansible-lint / gitleaks (pull_request) Successful in 6s
ansible-lint / Ansible Lint (pull_request) Successful in 36s
df
2025-01-03 15:09:51 +01:00

46 lines
1 KiB
Django/Jinja

# Details/Doku: https://wiki.mgrote.net/pages/_Technik/software/rest/ldap/?h=ldap
services:
######## traefik ########
traefik:
container_name: traefik
image: "traefik:v3.2.3"
restart: unless-stopped
pull_policy: missing
deploy:
resources:
limits:
cpus: "2"
memory: "512M"
security_opt:
- no-new-privileges=true
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.yml:/etc/traefik/traefik.yml:ro
- ./file-provider.yml:/etc/traefik/file-provider.yml:ro
- 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
healthcheck:
test: ["CMD", "traefik", "healthcheck", "--ping"]
interval: 30s
timeout: 10s
retries: 3
######## Networks ########
networks:
authelia:
traefik:
external: true
postfix:
external: true
######## Volumes ########
volumes:
acme_data: