2023-05-25 14:26:13 +02:00
|
|
|
---
|
|
|
|
services:
|
|
|
|
traefik:
|
2024-10-28 20:57:07 +01:00
|
|
|
image: docker.io/library/traefik:v3.2.0
|
2023-05-25 14:26:13 +02:00
|
|
|
container_name: traefik
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
2024-11-08 11:06:02 +01:00
|
|
|
# --> (Optional) Enable Dashboard, don't do in production
|
2023-08-16 12:14:38 +02:00
|
|
|
# - 8080:8080
|
2024-11-08 11:06:02 +01:00
|
|
|
# <--
|
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
|
2024-10-12 09:11:47 +02:00
|
|
|
- ./data/certs/:/var/traefik/certs/:rw
|
2024-11-08 11:06:02 +01:00
|
|
|
- ./config/conf.d/:/etc/traefik/conf.d/:ro
|
|
|
|
environment:
|
|
|
|
- CF_DNS_API_TOKEN=your-cloudflare-api-token # <-- Change this to your Cloudflare API Token
|
|
|
|
networks:
|
|
|
|
- frontend
|
2023-08-16 12:14:38 +02:00
|
|
|
restart: unless-stopped
|
2024-11-08 11:06:02 +01:00
|
|
|
networks:
|
|
|
|
frontend:
|
|
|
|
external: true # <-- (Optional) Change this to false if you want to create a new network
|