27 lines
587 B
YAML
27 lines
587 B
YAML
|
|
version: '3.8'
|
||
|
|
|
||
|
|
services:
|
||
|
|
watchdog:
|
||
|
|
build: .
|
||
|
|
container_name: watchdog-docker
|
||
|
|
restart: unless-stopped
|
||
|
|
ports:
|
||
|
|
- "5000:5000"
|
||
|
|
volumes:
|
||
|
|
- ./config/config.yaml:/app/config/config.yaml:ro
|
||
|
|
- ./data:/app/data
|
||
|
|
environment:
|
||
|
|
- TZ=Europe/Berlin
|
||
|
|
- PYTHONUNBUFFERED=1
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:5000/health')"]
|
||
|
|
interval: 30s
|
||
|
|
timeout: 10s
|
||
|
|
retries: 3
|
||
|
|
start_period: 10s
|
||
|
|
networks:
|
||
|
|
- watchdog-net
|
||
|
|
|
||
|
|
networks:
|
||
|
|
watchdog-net:
|
||
|
|
driver: bridge
|