24 lines
588 B
YAML
24 lines
588 B
YAML
services:
|
|
app:
|
|
build: .
|
|
ports:
|
|
- "31405:8000"
|
|
env_file: .env
|
|
environment:
|
|
HOST: 0.0.0.0
|
|
PORT: 8000
|
|
DATABASE_DIR: /app/data
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./logs:/app/logs
|
|
- ./backend/logs:/app/backend/logs
|
|
- ./custom_simulation:/app/custom_simulation
|
|
init: true
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=5)"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
start_period: 20s
|
|
retries: 3
|
|
restart: unless-stopped
|