-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (33 loc) · 1.25 KB
/
Copy pathdocker-compose.yml
File metadata and controls
33 lines (33 loc) · 1.25 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
services:
dark-pool-backend:
build:
context: .
dockerfile: backend/Dockerfile
container_name: dark-pool-backend
restart: unless-stopped
environment:
DARK_POOL_MOCK: "0"
DARK_POOL_BOOTSTRAP: "/app/config/dark-pool.bootstrap.json"
CANTON_JSON_API_URL: "${CANTON_JSON_API_URL:-https://ledger-api.validator.devnet.sandbox.fivenorth.io}"
FIVENORTH_AUTH_URL: "${FIVENORTH_AUTH_URL:-https://auth.sandbox.fivenorth.io/application/o/token/}"
FIVENORTH_CLIENT_ID: "${FIVENORTH_CLIENT_ID:-validator-devnet-m2m}"
FIVENORTH_CLIENT_SECRET: "${FIVENORTH_CLIENT_SECRET:-}"
FIVENORTH_SCOPE: "${FIVENORTH_SCOPE:-daml_ledger_api}"
DARK_POOL_SERVICE_PORT: "${DARK_POOL_SERVICE_PORT:-3020}"
CORS_ORIGINS: "${CORS_ORIGINS:-https://darkpools.cc/}"
MATCH_INTERVAL_MS: "${MATCH_INTERVAL_MS:-150000}"
volumes:
- type: bind
source: ./dark-pool.bootstrap.json
target: /app/config/dark-pool.bootstrap.json
read_only: true
bind:
create_host_path: false
ports:
- "3020:3020"
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:3020/healthz >/dev/null || exit 1"]
interval: 5s
timeout: 3s
retries: 20
start_period: 5s