| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- ---
- name: "Traefik"
- description: "An open-source edge router for microservices"
- version: "0.0.1"
- date: "2023-10-01"
- author: "Christian Lempa"
- tags:
- - traefik
- - reverse-proxy
- - load-balancer
- files:
- - config/traefik.yaml
- variables:
- acme_email:
- display: "ACME Email"
- description: "Email address for ACME (Let's Encrypt) registration"
- ---
- services:
- traefik:
- image: docker.io/library/traefik:v3.5.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/:/etc/traefik/:ro
- - ./certs/:/var/traefik/certs/:rw
- 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
|