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:
|
2024-10-10 00:42:40 +02:00
|
|
|
image: docker.io/library/traefik:v3.1.6
|
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:
|
2024-06-04 11:37:16 +02:00
|
|
|
- /run/docker.sock:/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
|