christianlempa-boilerplates/docker-compose/traefik/docker-compose.yaml

27 lines
789 B
YAML
Raw Normal View History

2023-05-25 14:26:13 +02:00
---
2023-08-16 12:14:38 +02:00
# -- (Optional) When using a custom network
# networks:
# your-traefik-network:
# external: true
2023-05-25 14:26:13 +02:00
services:
traefik:
image: docker.io/library/traefik:v3.0.3
2023-05-25 14:26:13 +02:00
container_name: traefik
ports:
- 80:80
- 443:443
2023-08-16 12:14:38 +02:00
# -- (Optional) Enable Dashboard, don't do in production
# - 8080:8080
2023-05-25 14:26:13 +02:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
2024-02-19 09:37:45 +01:00
- ./config/traefik.yaml:/etc/traefik/traefik.yaml:ro
- ./config/conf/:/etc/traefik/conf/
- ./config/certs/:/etc/traefik/certs/
2023-08-16 12:14:38 +02:00
# -- (Optional) When using Cloudflare as Cert Resolver
# environment:
# - CF_DNS_API_TOKEN=your-cloudflare-api-token
# -- (Optional) When using a custom network
# networks:
# - your-traefik-network
restart: unless-stopped