homelab/server/config/traefik/docker-compose.yml

23 lines
422 B
YAML

version: "3"
services:
traefik:
container_name: traefik
image: traefik:latest
restart: unless-stopped
networks:
- web
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.toml:/traefik.toml
- ./config:/config
- $DOCKER_DATA/acme.json:/acme.json
- ./.htpasswd:/.htpasswd
networks:
web:
external: true