chore: add traefik deployment and config generation

This commit is contained in:
Bert-Jan Fikse 2025-08-20 15:14:42 +02:00
parent aca6e8dac2
commit 5c5a0e9d51
Signed by: bert-jan
GPG key ID: C1E0AB516AC16D1A
6 changed files with 155 additions and 1 deletions

View file

@ -0,0 +1,23 @@
version: '3.8'
services:
traefik:
image: traefik:v3.5
container_name: traefik
restart: always
ports:
- "80:80"
- "443:443"
{% if enable_dashboard %}
- "8080:8080" # Dashboard
{% endif %}
volumes:
- {{ docker_volume_dir }}/traefik/etc/traefik:/etc/traefik:ro
- {{ docker_volume_dir }}/traefik/letsencrypt:/letsencrypt
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- traefik
networks:
traefik:
external: true