ntfy-emergency-app/docker-compose.yml

20 lines
560 B
YAML
Raw Normal View History

2025-10-16 09:50:36 +02:00
services:
2025-10-16 12:08:18 +02:00
ntfy-emergency-app:
2025-10-16 09:50:36 +02:00
build: .
2025-10-16 12:08:18 +02:00
container_name: ntfy-emergency-app
2025-10-16 09:50:36 +02:00
ports:
- "3000:3000"
environment:
- NTFY_URL=${NTFY_URL}
- NTFY_USER=${NTFY_USER}
- NTFY_PASSWORD=${NTFY_PASSWORD}
2025-10-16 09:55:32 +02:00
- NTFY_TOPIC=${NTFY_TOPIC:-emergencia}
2025-10-16 09:50:36 +02:00
- PORT=3000
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) })"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s