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.
This commit is contained in:
parent
d8cc190388
commit
2c33b81277
@ -2,6 +2,7 @@ services:
|
|||||||
backend:
|
backend:
|
||||||
build:
|
build:
|
||||||
context: ./backend
|
context: ./backend
|
||||||
|
restart: unless-stopped
|
||||||
env_file: .env
|
env_file: .env
|
||||||
volumes:
|
volumes:
|
||||||
- ./notebooks:/app/notebooks
|
- ./notebooks:/app/notebooks
|
||||||
@ -14,6 +15,7 @@ services:
|
|||||||
frontend:
|
frontend:
|
||||||
build:
|
build:
|
||||||
context: ./frontend
|
context: ./frontend
|
||||||
|
restart: unless-stopped
|
||||||
env_file: .env
|
env_file: .env
|
||||||
environment:
|
environment:
|
||||||
- PUBLIC_API_URL=https://${SPICEBOOK_DOMAIN:-localhost:4321}
|
- PUBLIC_API_URL=https://${SPICEBOOK_DOMAIN:-localhost:4321}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user