mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-12-02 21:29:20 +01:00
25 lines
734 B
YAML
25 lines
734 B
YAML
---
|
|
services:
|
|
traefik:
|
|
image: docker.io/library/traefik:v3.2.1
|
|
container_name: traefik
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
# --> (Optional) Enable Dashboard, don't do in production
|
|
# - 8080:8080
|
|
# <--
|
|
volumes:
|
|
- /run/docker.sock:/run/docker.sock:ro
|
|
- ./config/traefik.yaml:/etc/traefik/traefik.yaml:ro
|
|
- ./data/certs/:/var/traefik/certs/:rw
|
|
- ./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
|
|
restart: unless-stopped
|
|
networks:
|
|
frontend:
|
|
external: true # <-- (Optional) Change this to false if you want to create a new network
|