Skip to content

Instantly share code, notes, and snippets.

@marcelmaatkamp
Created December 14, 2024 21:07
Show Gist options
  • Save marcelmaatkamp/acdc8c8e996ca0ea0b8a43aedc7044f5 to your computer and use it in GitHub Desktop.
Save marcelmaatkamp/acdc8c8e996ca0ea0b8a43aedc7044f5 to your computer and use it in GitHub Desktop.
pocketbase gist
services:
pocketbase:
image: ghcr.io/muchobien/pocketbase:0.23.6
restart: unless-stopped
environment:
ENCRYPTION: $(openssl rand -hex 32)\
prts:
- "8090:8090"
volumes:
- pocketbase:/pb_data
# - /path/to/public:/pb_public # optional
# - /path/to/hooks:/pb_hooks # optional
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
volumes:
pocketbase:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment