-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 1.14 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (45 loc) · 1.14 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
# zkDPoP Demo - Docker Compose
#
# Quick start:
# docker-compose up
#
# Then open http://localhost:8081 in your browser
services:
demo:
build:
context: .
dockerfile: Dockerfile
ports:
- "${PORT:-8081}:8081"
environment:
- CURVE=${CURVE:-secp256k1}
- RATE_LIMIT=${RATE_LIMIT:-120}
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8081/api/info"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
# Optional: Run auth server and demo API separately
# Uncomment below for multi-service setup
# auth-server:
# build:
# context: .
# dockerfile: Dockerfile.authd
# ports:
# - "8080:8080"
# environment:
# - CURVE=${CURVE:-secp256k1}
# - RATE_LIMIT=${RATE_LIMIT:-120}
# command: ["/app/zkdpop-authd", "--curve", "${CURVE:-secp256k1}"]
# demo-api:
# build:
# context: .
# dockerfile: Dockerfile.demo-api
# ports:
# - "8082:8082"
# environment:
# - AUTH_SERVER=http://auth-server:8080
# depends_on:
# - auth-server