28 lines
630 B
YAML
28 lines
630 B
YAML
services:
|
|
btc-monitor:
|
|
build:
|
|
context: .
|
|
image: btc-accumulation-monitor:local
|
|
ports:
|
|
- "3088:3088"
|
|
restart: unless-stopped
|
|
environment:
|
|
PLAYWRIGHT_BROWSERS_PATH: /ms-playwright
|
|
volumes:
|
|
- btc-monitor-data:/app/data
|
|
- btc-monitor-config:/app/config
|
|
healthcheck:
|
|
test:
|
|
- CMD
|
|
- /app/.venv/bin/python
|
|
- -c
|
|
- "import urllib.request; urllib.request.urlopen('http://127.0.0.1:3088/health/live', timeout=3)"
|
|
interval: 30s
|
|
timeout: 5s
|
|
start_period: 30s
|
|
retries: 3
|
|
|
|
volumes:
|
|
btc-monitor-data:
|
|
btc-monitor-config:
|