Advertisement
Guest User

Untitled

a guest
Feb 13th, 2025
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.44 KB | None | 0 0
  1. services:
  2. traefik:
  3. image: traefik:v3.0
  4. container_name: traefik
  5. restart: unless-stopped
  6. security_opt:
  7. - no-new-privileges:true
  8. networks:
  9. - proxy
  10. ports:
  11. - 80:80
  12. - 443:443
  13. # - 443:443/tcp # Uncomment if you want HTTP3
  14. # - 443:443/udp # Uncomment if you want HTTP3
  15. environment:
  16. CF_DNS_API_TOKEN_FILE: /run/secrets/cf_api_token # note using _FILE for docker secrets
  17. # CF_DNS_API_TOKEN: ${CF_DNS_API_TOKEN} # if using .env
  18. TRAEFIK_DASHBOARD_CREDENTIALS: ${TRAEFIK_DASHBOARD_CREDENTIALS}
  19. secrets:
  20. - cf_api_token
  21. env_file: .env # use .env
  22. volumes:
  23. - /etc/localtime:/etc/localtime:ro
  24. - /var/run/docker.sock:/var/run/docker.sock:ro
  25. - ./data/traefik.yml:/traefik.yml:ro
  26. - ./data/acme.json:/acme.json
  27. - ./data/config.yml:/config.yml:ro
  28. labels:
  29.  
  30. secrets:
  31. cf_api_token:
  32. file: ./cf_api_token.txt
  33.  
  34. networks:
  35. proxy:
  36. external: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement