34 lines
804 B
YAML
34 lines
804 B
YAML
services:
|
|
api:
|
|
build: .
|
|
ports:
|
|
- "127.0.0.1:8000:8000"
|
|
env_file:
|
|
- path: .env
|
|
required: false
|
|
environment:
|
|
SILLYHOME_MODEL_STORE: /app/data/models
|
|
SILLYHOME_AUTOMATION_STORE: /app/data/automations
|
|
SILLYHOME_ACTUATOR_STORE: /app/data/actuators
|
|
SILLYHOME_HISTORY_DAYS: 14
|
|
SILLYHOME_MIN_TRAINING_POINTS: 24
|
|
SILLYHOME_RETRAIN_STALE_HOURS: 24
|
|
SILLYHOME_RECONCILE_INTERVAL_SECONDS: 900
|
|
volumes:
|
|
- model-data:/app/data/models
|
|
- automation-data:/app/data/automations
|
|
- actuator-data:/app/data/actuators
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
cap_drop:
|
|
- ALL
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
model-data:
|
|
automation-data:
|
|
actuator-data:
|