wohnbot/docker-compose.yml
2026-01-01 15:32:50 +01:00

32 lines
747 B
YAML

services:
wohnbot:
build: .
container_name: wohnbot
restart: unless-stopped
env_file:
- .env
dns:
- 1.1.1.1
- 8.8.8.8
volumes:
- /srv/dev-disk-by-uuid-a920d9c0-dfc1-4a58-ae4d-92cf88ff04a5/docker-app/wohnbot/data:/app/data:rw
environment:
- CHECK_INTERVAL=150
healthcheck:
test:
[
"CMD-SHELL",
"pgrep -f 'python.*main.py' > /dev/null && test -f /app/data/monitor.log && test $$(find /app/data/monitor.log -mmin -10 | wc -l) -gt 0 || exit 1",
]
interval: 5m
timeout: 30s
start_period: 30s
retries: 3
networks:
proxy-network:
aliases:
- wohnbot
networks:
proxy-network:
external: true