services: gotify: image: gotify/server container_name: gotify ports: - ${HTTP_PORT}:80 - ${HTTPS_PORT}:443 volumes: - /path/to/gotify:/app/data restart: always security_opt: - no-new-privileges:true environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ}