Guest User

docker-compose.yaml

a guest
Jul 9th, 2025
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. services:
  2. ntfy:
  3. image: binwiederhier/ntfy:latest
  4. container_name: ntfy
  5. restart: unless-stopped
  6. command:
  7. - serve
  8. volumes:
  9. - cache:/var/cache/ntfy
  10. - ./etc/ntfy:/etc/ntfy
  11. environment:
  12. - TZ=UTC
  13. labels:
  14. - "traefik.enable=true"
  15. - "traefik.http.routers.ntfy.entrypoints=http"
  16. - "traefik.http.routers.ntfy.rule=Host(`ntfy.YOURDOMAINHERE`)"
  17. - "traefik.http.middlewares.ntfy-https-redirect.redirectscheme.scheme=https"
  18. - "traefik.http.routers.ntfy.middlewares=ntfy-https-redirect"
  19. - "traefik.http.routers.ntfy-secure.entrypoints=https"
  20. - "traefik.http.routers.ntfy-secure.rule=Host(`ntfy.YOURDOMAINHERE`)"
  21. - "traefik.http.routers.ntfy-secure.tls=true"
  22. - "traefik.http.services.ntfy.loadbalancer.server.port=80"
  23. - "traefik.docker.network=proxy"
  24. networks:
  25. - proxy # traefik network
  26.  
  27.  
  28. volumes:
  29. cache:
  30.  
  31. networks:
  32. proxy:
  33. external: true
  34.  
  35.  
  36.  
  37.  
Advertisement
Add Comment
Please, Sign In to add comment