-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (30 loc) · 1.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
31 lines (30 loc) · 1.01 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
# One-command deploy: docker compose up -d
# State persists in the named volume; back it up and you've backed up everything.
services:
api:
build: .
# Or, once published: image: ghcr.io/jwicks31/zero-config-data-api:latest
ports:
- "3737:3737"
volumes:
- zcda-data:/data
environment:
# All optional — the server boots with none of these set.
# ADMIN_KEY: change-me # enable multi-tenant projects
# API_KEY: change-me # or lock the whole instance with one key
# ANTHROPIC_API_KEY: sk-ant-... # enable the AI endpoint
# CORS_ORIGIN: https://app.example,https://admin.example # restrict browser origins
NODE_ENV: production
restart: unless-stopped
healthcheck:
test:
- CMD
- node
- -e
- "fetch('http://localhost:3737/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
zcda-data: