services: gotify: image: gotify/server:latest container_name: gotify restart: unless-stopped ports: - "127.0.0.1:9091:80" volumes: - gotify_data:/app/data environment: - GOTIFY_DEFAULTUSER_NAME=${GOTIFY_ADMIN_USER} - GOTIFY_DEFAULTUSER_PASS=${GOTIFY_ADMIN_PASS} networks: - gotify-network healthcheck: test: ["CMD", "wget", "--spider", "-q", "http://localhost:80/health"] interval: 30s timeout: 10s retries: 3 start_period: 10s volumes: gotify_data: networks: gotify-network: driver: bridge