compose/traefik/compose.yaml

30 lines
572 B
YAML

services:
traefik:
image: traefik:2.8
container_name: traefik
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "24880:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./config/acme/acme.json:/acme.json:rw
configs:
- source: traefik
target: /traefik.yml
- source: htpasswd
target: /htpasswd
networks:
- traefik_proxy
networks:
traefik_proxy:
name: traefik_proxy
configs:
traefik:
file: ./config/traefik.yml
htpasswd:
file: ./config/htpasswd