-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 1.03 KB
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (37 loc) · 1.03 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
34
35
36
37
38
39
services:
pocketbase:
build:
context: .
dockerfile: Dockerfile.pocketbase
volumes:
- pb_data:/pb/pb_data
environment:
PB_ADMIN_EMAIL: ${PB_ADMIN_EMAIL}
PB_ADMIN_PASSWORD: ${PB_ADMIN_PASSWORD}
ports:
- "8090:8090" # expose for PocketBase admin UI — remove in production if not needed
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:8090/api/health"]
interval: 10s
timeout: 5s
retries: 5
sveltekit:
build:
context: .
dockerfile: Dockerfile
environment:
PUBLIC_POCKETBASE_URL: ${PUBLIC_POCKETBASE_URL:-http://pocketbase:8090}
PB_ADMIN_EMAIL: ${PB_ADMIN_EMAIL}
PB_ADMIN_PASSWORD: ${PB_ADMIN_PASSWORD}
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
BODY_SIZE_LIMIT: ${BODY_SIZE_LIMIT:-2M}
ORIGIN: ${ORIGIN:-http://localhost:3000}
ports:
- "3000:3000"
depends_on:
pocketbase:
condition: service_healthy
restart: unless-stopped
volumes:
pb_data: