-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.devnet.yaml
More file actions
79 lines (68 loc) · 2.44 KB
/
docker-compose.devnet.yaml
File metadata and controls
79 lines (68 loc) · 2.44 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Docker Compose override for 5North DevNet
# Usage: docker compose -f docker-compose.yaml -f docker-compose.devnet.yaml up -d
#
# This overlay:
# - Disables local Canton, Anvil, deployer (using 5North hosted participant + Sepolia)
# - Disables mock-oauth2 and bootstrap (not needed for devnet)
# - Keeps Postgres for relayer and API server state
# - Configures relayer with ENV=devnet (built-in defaults in image)
# - Configures api-server with ENV=devnet (built-in defaults in image)
services:
# Disable local services - using 5North hosted participant + Sepolia
canton:
profiles: ["disabled"]
anvil:
profiles: ["disabled"]
deployer:
profiles: ["disabled"]
mock-oauth2:
profiles: ["disabled"]
bootstrap:
profiles: ["disabled"]
postgres:
volumes:
- postgres_data:/var/lib/postgresql/data
# Relayer connecting to 5North DevNet + Sepolia
relayer:
depends_on: !override
postgres:
condition: service_healthy
volumes: []
command: []
environment:
ENV: devnet
RELAYER_DATABASE_URL: "${RELAYER_DATABASE_URL:-postgres://postgres:p%40ssw0rd@postgres:5432/relayer}"
SEPOLIA_RPC_URL: "${SEPOLIA_RPC_URL}"
SEPOLIA_WS_URL: "${SEPOLIA_WS_URL}"
ETHEREUM_RELAYER_PRIVATE_KEY: "${ETHEREUM_RELAYER_PRIVATE_KEY}"
CANTON_AUTH_CLIENT_ID: "${CANTON_AUTH_CLIENT_ID}"
CANTON_AUTH_CLIENT_SECRET: "${CANTON_AUTH_CLIENT_SECRET}"
# API Server connecting to 5North DevNet
api-server:
depends_on: !override
postgres:
condition: service_healthy
volumes: []
command: []
environment:
ENV: devnet
API_SERVER_DATABASE_URL: "${API_SERVER_DATABASE_URL:-postgres://postgres:p%40ssw0rd@postgres:5432/erc20_api}"
CANTON_AUTH_CLIENT_ID: "${CANTON_AUTH_CLIENT_ID}"
CANTON_AUTH_CLIENT_SECRET: "${CANTON_AUTH_CLIENT_SECRET}"
CANTON_MASTER_KEY: "${CANTON_MASTER_KEY}"
# Indexer connecting to 5North DevNet
indexer:
depends_on: !override
postgres:
condition: service_healthy
volumes: []
command: []
environment:
ENV: devnet
INDEXER_DATABASE_URL: "${INDEXER_DATABASE_URL:-postgres://postgres:p%40ssw0rd@postgres:5432/canton_indexer}"
CANTON_AUTH_CLIENT_ID: "${CANTON_AUTH_CLIENT_ID}"
CANTON_AUTH_CLIENT_SECRET: "${CANTON_AUTH_CLIENT_SECRET}"
CANTON_ISSUER_PARTY: "${CANTON_ISSUER_PARTY}"
# Postgres stays enabled for relayer, API server, and indexer state
volumes:
postgres_data: