Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- ntfy:
- image: binwiederhier/ntfy:latest
- container_name: ntfy
- restart: unless-stopped
- command:
- - serve
- volumes:
- - cache:/var/cache/ntfy
- - ./etc/ntfy:/etc/ntfy
- environment:
- - TZ=UTC
- labels:
- - "traefik.enable=true"
- - "traefik.http.routers.ntfy.entrypoints=http"
- - "traefik.http.routers.ntfy.rule=Host(`ntfy.YOURDOMAINHERE`)"
- - "traefik.http.middlewares.ntfy-https-redirect.redirectscheme.scheme=https"
- - "traefik.http.routers.ntfy.middlewares=ntfy-https-redirect"
- - "traefik.http.routers.ntfy-secure.entrypoints=https"
- - "traefik.http.routers.ntfy-secure.rule=Host(`ntfy.YOURDOMAINHERE`)"
- - "traefik.http.routers.ntfy-secure.tls=true"
- - "traefik.http.services.ntfy.loadbalancer.server.port=80"
- - "traefik.docker.network=proxy"
- networks:
- - proxy # traefik network
- volumes:
- cache:
- networks:
- proxy:
- external: true
Advertisement
Add Comment
Please, Sign In to add comment