PocketBase with Encryption Support
264
๐ฆ PocketBase with Encryption Support
This image provides a ready-to-use instance of PocketBaseโ with optional encryption support for settings, making it production-ready.
ENCRYPTION environment variableversion: "3.7"
services:
pocketbase:
image: khieudv/pocketbase:latest
container_name: pocketbase
restart: unless-stopped
command:
- --encryptionEnv
- ENCRYPTION
environment:
ENCRYPTION: "1234567890abcdef1234567890abcdef" # must be exactly 32 characters
ports:
- "8090:8090"
volumes:
- ./pocketbase/data:/pb_data
- ./pocketbase/public:/pb_public
- ./pocketbase/hooks:/pb_hooks
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
interval: 5s
timeout: 5s
retries: 5
| Host Path | Purpose |
|---|---|
./pocketbase/data | Stores the PocketBase database |
./pocketbase/public | Hosts static/public files |
./pocketbase/hooks | Contains custom hook scripts |
ENCRYPTION variable is required when using the --encryptionEnv flagContent type
Image
Digest
sha256:92542bce0โฆ
Size
18.5 MB
Last updated
over 1 year ago
docker pull khieudv/pocketbase