spicebook/docker-compose.yml
Ryan Malloy 2c33b81277 Add restart: unless-stopped to backend and frontend
A frontend OOM during heavy LTspice image builds left it crashed with no
auto-recovery (Caddy served empty 200s). Restart policy self-heals crashes
and survives host reboots.
2026-06-20 22:37:37 -06:00

25 lines
588 B
YAML

services:
backend:
build:
context: ./backend
restart: unless-stopped
env_file: .env
volumes:
- ./notebooks:/app/notebooks
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health')"]
interval: 30s
timeout: 5s
retries: 3
frontend:
build:
context: ./frontend
restart: unless-stopped
env_file: .env
environment:
- PUBLIC_API_URL=https://${SPICEBOOK_DOMAIN:-localhost:4321}
depends_on:
backend:
condition: service_healthy