Files
infrastructure/hosts/ps09rp/traefik/compose.yml
2025-01-09 19:57:39 -06:00

30 lines
966 B
YAML

services:
traefik:
command: traefik
container_name: traefik
env_file:
- .env
image: docker.io/traefik:v3.2
labels:
traefik.docker.network: traefik
traefik.enable: true
traefik.http.routers.dashboard.entrypoints: websecure
traefik.http.routers.dashboard.rule: (Host(`traefik-ps09rp.alexlebens.net`) && (PathPrefix(`/api/`) || PathPrefix(`/dashboard/`)))
traefik.http.routers.dashboard.service: api@internal
traefik.http.routers.dashboard.tls: true
traefik.http.routers.dashboard.tls.certresolver: cloudflare
networks:
internal: null
ports:
- 80:80
- 443:443
privileged: true
restart: always
volumes:
- ./traefik_config:/etc/traefik
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
internal:
name: internal