Commit d66cb74
committed
fix: create /app/data owned by runtime user; add DATABASE_PATH to compose
Dockerfile: create /app/data and chown it to the runtime user before
USER switch so Docker volume initialization inherits correct ownership.
Previously, Docker named volumes were root:root on first mount, causing
SQLite SQLITE_CANTOPEN (even though Node fs writes worked fine).
The actual compose volume names are prefixed by docker compose project
names (cas_cas-data, template_template-data) — the chown fix ensures
any fresh volume deploy initialises with the correct uid 100:101.
docker-compose.yml: add explicit DATABASE_PATH env var (was missing,
though the code has a sensible default, explicit is better).1 parent 666d690 commit d66cb74
File tree
4 files changed
+8
-0
lines changed- apps
- cas
- backend
- template
- backend
4 files changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments