compose.yaml 659 B

123456789101112131415161718192021222324
  1. ---
  2. services:
  3. traefik:
  4. image: docker.io/library/traefik:v3.5.3
  5. container_name: traefik
  6. ports:
  7. - 80:80
  8. - 443:443
  9. # --> (Optional) Enable Dashboard, don't do in production
  10. # - 8080:8080
  11. # <--
  12. volumes:
  13. - /run/docker.sock:/run/docker.sock:ro
  14. - ./config/:/etc/traefik/:ro
  15. - ./certs/:/var/traefik/certs/:rw
  16. environment:
  17. - CF_DNS_API_TOKEN=your-cloudflare-api-token # <-- Change this to your Cloudflare API Token
  18. networks:
  19. - frontend
  20. restart: unless-stopped
  21. networks:
  22. frontend:
  23. external: true # <-- (Optional) Change this to false if you want to create a new network