``refactor Update docker-compose configurations, adjust PocketBase Dockerfile, modify seed scripts to use 'state' instead of 'status', and fix paths in development scripts ``

This commit is contained in:
2025-05-16 11:13:14 +08:00
parent a8b0a63648
commit 3e3e23aa68
5 changed files with 32 additions and 21 deletions

View File

@@ -1,3 +1,6 @@
# related to ./scripts/dc_dev.sh
# consider we are starting in project/002_source/docker, see dc_dev.sh
volumes:
shared:
dist:
@@ -16,10 +19,14 @@ services:
ports:
- 8090:8090
volumes:
# group custom persistant data inside docker directory
- ./volumes/pocketbase/pb_data:/pb_data
#
# group dev, seed, schemas into pocketbase dirctory
- ../pocketbase/pb_migrations:/pb_migrations
- ../pocketbase/pb_hooks:/pb_hooks
# TODO: resume healthcheck in prod
# healthcheck:
# #optional (recommended) since v0.10.0
# test: wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
@@ -30,6 +37,6 @@ services:
deploy:
resources:
limits:
cpus: 0.5
cpus: 0.1
reservations:
cpus: 0.01