-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (33 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
33 lines (33 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
services:
pocketbase:
image: ghcr.io/muchobien/pocketbase:${PB_VERSION}
restart: unless-stopped
command:
- --encryptionEnv # optional
- ENCRYPTION # optional
# environment:
# ENCRYPTION: $(openssl rand -hex 16) # optional (Ensure this is a 32-character long encryption key https://pocketbase.io/docs/going-to-production/#enable-settings-encryption)
ports:
- "8091:8090"
volumes:
- ./pocketbase/pb_data:/pb_data
- ./pocketbase/pb_migrations:/pb_migrations # optional
- ./pocketbase/pb_public:/pb_public # optional
- ./pocketbase/pb_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
web:
restart: unless-stopped
environment:
- PUBLIC_POCKETBASE_URL=${PUBLIC_POCKETBASE_URL}
- BACKEND_POCKETBASE_URL=${BACKEND_POCKETBASE_URL:-http://pocketbase:8090}
build:
context: .
dockerfile: Dockerfile
ports:
- "8001:3000"
depends_on:
- pocketbase