compose.yaml 1008 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ---
  2. name: "Traefik"
  3. description: "An open-source edge router for microservices"
  4. version: "0.0.1"
  5. date: "2023-10-01"
  6. author: "Christian Lempa"
  7. tags:
  8. - traefik
  9. - reverse-proxy
  10. - load-balancer
  11. files:
  12. - config/traefik.yaml
  13. variables:
  14. acme_email:
  15. display: "ACME Email"
  16. description: "Email address for ACME (Let's Encrypt) registration"
  17. ---
  18. services:
  19. traefik:
  20. image: docker.io/library/traefik:v3.5.1
  21. container_name: traefik
  22. ports:
  23. - 80:80
  24. - 443:443
  25. # --> (Optional) Enable Dashboard, don't do in production
  26. # - 8080:8080
  27. # <--
  28. volumes:
  29. - /run/docker.sock:/run/docker.sock:ro
  30. - ./config/:/etc/traefik/:ro
  31. - ./certs/:/var/traefik/certs/:rw
  32. environment:
  33. - CF_DNS_API_TOKEN=your-cloudflare-api-token # <-- Change this to your Cloudflare API Token
  34. networks:
  35. - frontend
  36. restart: unless-stopped
  37. networks:
  38. frontend:
  39. external: true # <-- (Optional) Change this to false if you want to create a new network