-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (53 loc) · 1.74 KB
/
Copy pathdocker-compose.yml
File metadata and controls
55 lines (53 loc) · 1.74 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
# Local stack: optional KMS (+ LocalStack) from published images + this API.
# Point CEPS_RPC_URL / CEPS_SSE_URL at a reachable Casper node (e.g. NCTL on host).
# API socle does not require KMS; use profile `kms` when SIGN_BACKEND=kms.
services:
kms-localstack:
image: ${KMS_LOCALSTACK_IMAGE:-interchouette/kms-localstack:latest}
container_name: ceps-kms-localstack
ports:
- "4566:4566"
environment:
- AWS_REGION=eu-west-3
- SERVICES=kms
- DEBUG=0
- LOCALSTACK_PERSISTENCE=0
- GATEWAY_LISTEN=4566
profiles:
- localstack
- kms
kms-secp256k1-api:
image: ${KMS_IMAGE:-interchouette/kms-secp256k1-api:latest}
container_name: ceps-kms-api
ports:
- "4000:4000"
environment:
- APP_PORT=4000
- TESTING_MODE=true
- BLOCKCHAIN_MODE=casper
- LIST_MODE=true
- DELETE_MODE=true
profiles:
- kms
ceps-rust-api:
image: ${CEPS_API_IMAGE:-interchouette/ceps-rust-api:latest}
build:
context: ../..
dockerfile: ceps-rust-api/docker/Dockerfile
container_name: ceps-rust-api
ports:
- "8080:8080"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- APP_ADDR=0.0.0.0
- APP_PORT=8080
- CEPS_RPC_URL=${CEPS_RPC_URL:-http://host.docker.internal:11101}
- CEPS_SSE_URL=${CEPS_SSE_URL:-http://host.docker.internal:18101/events}
- CEPS_CHAIN_NAME=${CEPS_CHAIN_NAME:-casper-net-1}
- RUST_LOG=info
- SIGN_BACKEND=${SIGN_BACKEND:-}
- KMS_URL=${KMS_URL:-}
# Unset SIGN_BACKEND → none. For KMS:
# SIGN_BACKEND=kms KMS_URL=http://kms-secp256k1-api:4000 docker compose --profile kms up -d
# LocalStack: profile localstack or kms. API only needs KMS_URL.