19 lines
609 B
YAML
19 lines
609 B
YAML
services:
|
|
whatsapp-reminder:
|
|
build: .
|
|
container_name: whatsapp-reminder
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3001:3000"
|
|
volumes:
|
|
- ./data:/app/data # WhatsApp-Session (bleibt nach Neustart erhalten)
|
|
- ./config:/app/config # contacts.json + settings.json
|
|
environment:
|
|
- TZ=Europe/Zurich
|
|
healthcheck:
|
|
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/status', r => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))"]
|
|
interval: 60s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 60s
|