-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (54 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
57 lines (54 loc) · 1.32 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: "3.9"
services:
app:
build:
context: .
dockerfile: Dockerfile
target: runtime
container_name: spectracleanse-api
ports:
- "3001:3001"
environment:
NODE_ENV: development
PORT: 3001
JWT_SECRET: dev-secret-key-change-in-production
STRIPE_SECRET_KEY: sk_test_dev_placeholder
STRIPE_WEBHOOK_SECRET: whsec_dev_placeholder
STRIPE_CREATOR_PRICE_ID: price_dev_creator
STRIPE_STUDIO_PRICE_ID: price_dev_studio
GEMINI_API_KEY: dev_gemini_key
FRONTEND_URL: http://localhost:5173
DB_PATH: /data/spectra.db
volumes:
- ./src:/app/src:ro
- ./server.js:/app/server.js:ro
- spectra-data:/data
develop:
watch:
- action: sync
path: ./src
target: /app/src
- action: sync
path: ./server.js
target: /app/server.js
- action: rebuild
path: ./package.json
depends_on:
- db
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:3001/api/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
db:
image: alpine:latest
container_name: spectracleanse-db
volumes:
- spectra-data:/data
command: sleep infinity
profiles:
- storage
volumes:
spectra-data:
driver: local