43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
# related to ./scripts/dc_dev.sh
|
|
# consider we are starting in project/002_source/docker, see dc_dev.sh
|
|
|
|
volumes:
|
|
shared:
|
|
dist:
|
|
|
|
services:
|
|
pocketbase:
|
|
# image: ghcr.io/muchobien/pocketbase:latest
|
|
build:
|
|
context: ./pocketbase/docker
|
|
args:
|
|
- VERSION=0.26.6 # Specify the PocketBase version here
|
|
# hostname: pocketbase
|
|
restart: always
|
|
# environment:
|
|
# ENCRYPTION: example #optional
|
|
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
|
|
# interval: 5s
|
|
# timeout: 5s
|
|
# retries: 5
|
|
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: 0.1
|
|
reservations:
|
|
cpus: 0.01
|