services:
  ntfy:
    image: binwiederhier/ntfy:latest
    container_name: ntfy
    command:
      - serve
    environment:
      - TZ=CET    # optional: set desired timezone
      - NTFY_BASE_URL=https://ntfy.ilnostropianetaselvaggio.it
      - NTFY_BEHIND_PROXY=true
    mem_limit: 512m   
    volumes:
      - /var/cache/ntfy:/var/cache/ntfy
      - /etc/ntfy:/etc/ntfy
    ports:
      - 127.0.0.1:3003:80
    restart: unless-stopped

# https://docs.ntfy.sh/config/#example-config