Skip to content

Instantly share code, notes, and snippets.

@KristofferEriksson
Last active January 24, 2024 12:04
Show Gist options
  • Save KristofferEriksson/36d3e0499f3d2f86e8ee04b275705073 to your computer and use it in GitHub Desktop.
Save KristofferEriksson/36d3e0499f3d2f86e8ee04b275705073 to your computer and use it in GitHub Desktop.
PocketBase Docker Compose File
version: "3.7"
services:
pocketbase:
image: ghcr.io/muchobien/pocketbase:latest
container_name: pocketbase
restart: unless-stopped
command:
- --encryptionEnv
- ENCRYPTION
environment:
ENCRYPTION: "your-secret-key"
ports:
- "8090:8090"
volumes:
- /data/pocketbase/data:/pb_data
- /data/pocketbase/public:/pb_public
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
interval: 5s
timeout: 5s
retries: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment