fix: SQLite readonly error in Docker container

- Add entrypoint script that ensures /data is owned by node user
  before dropping privileges with su-exec
- Remove USER node from Dockerfile (entrypoint handles it)
- Change client depends_on to service_healthy so nginx waits for
  the server to pass its healthcheck before starting
This commit is contained in:
MayaTheShy
2026-03-22 19:15:04 -04:00
parent d4a9441b54
commit b49574f39b
3 changed files with 18 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ services:
- inventory-network
depends_on:
server:
condition: service_started
condition: service_healthy
restart: unless-stopped
networks: