Bind-mount PocketBase data dir in local dev instead of a named volume
Makes local test data (e.g. content pulled from production for testing) directly inspectable and swappable on the host filesystem, without affecting the production volume-based setup.
This commit is contained in:
1 parent
91181f2170
commit
7ce073d2a9
2 files changed
+5
No files matched your search
@@ -36,6 +36,9 @@ frontend/.nuxtrc
|
|||||||
caddy/data/
|
caddy/data/
|
||||||
caddy/config/
|
caddy/config/
|
||||||
|
|
||||||
|
# pocketbase local dev data (bind-mounted, docker-compose.dev.yml)
|
||||||
|
pocketbase/pb_data/
|
||||||
|
|
||||||
# logs
|
# logs
|
||||||
*.log
|
*.log
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ services:
|
|||||||
pocketbase:
|
pocketbase:
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:8090:8090"
|
- "127.0.0.1:8090:8090"
|
||||||
|
volumes:
|
||||||
|
- ./pocketbase/pb_data:/pb/pb_data
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Reference in new issue
Block a user