-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
179 lines (167 loc) · 6 KB
/
docker-compose.yml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
services:
launcher:
container_name: launcher
build:
context: .
environment:
CARDANO_NODE_SOCKET_PATH: /app/cardano-node/example/main.sock
volumes:
- ./cluster:/app/cardano-node/example
- ./appdata:/app/appdata
node1:
container_name: node1
build:
context: .
volumes:
- ./cluster:/app/cardano-node/example
working_dir: /app/cardano-node/
entrypoint: ./example/node-spo1.sh
node2:
container_name: node2
build:
context: .
volumes:
- ./cluster:/app/cardano-node/example
working_dir: /app/cardano-node/
entrypoint: ./example/node-spo2.sh
node3:
container_name: node3
build:
context: .
volumes:
- ./cluster:/app/cardano-node/example
working_dir: /app/cardano-node/
entrypoint: ./example/node-spo3.sh
ogmios:
container_name: ogmios
image: cardanosolutions/ogmios:v6.10.0
ports:
- 1447:1447
volumes:
- ./cluster:/app/cardano-node/example
command: "--node-socket /app/cardano-node/example/node-spo1/node.sock --node-config /app/cardano-node/example/configuration.yaml --host 0.0.0.0 --include-cbor --port 1447"
# # If needed, adjust the match pattern
# kupo:
# container_name: kupo
# image: cardanosolutions/kupo:v2.9.0
# volumes:
# - ./kupo/db-mainnet:/db
# - ./cluster:/app/cardano-node/example
# ports:
# - 1442:1442
# command: "--node-socket /app/cardano-node/example/node-spo1/node.sock --node-config /app/cardano-node/example/configuration.yaml --host 0.0.0.0 --workdir /db --since origin --match addr_test1vq0vxepg89c784sjchzgank8u3s69sek4vmmel34gsau6pclv05ap --match f5b21ffadb04b8a2bf7ec7bbfb3490cbcc71d41c1cac19e2c138e7e5.*"
postgres:
image: postgres:14.10-alpine
container_name: dbsync_postgres
restart: always
ports:
- 5432:5432
healthcheck:
# Use pg_isready to check postgres is running. Substitute different
# user `postgres` if you've setup differently to config/pgpass-mainnet
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./dbsync/postgres/data:/var/lib/postgresql/data
environment:
POSTGRES_LOGGING: true
POSTGRES_PASSWORD: example
POSTGRES_DB: cexplorer
PGDATA: /var/lib/postgresql/data/pgdata
command: ${POSTGRES_ARGS:--c maintenance_work_mem=8GB -c max_parallel_maintenance_workers=8}
cardano-db-sync:
image: ghcr.io/intersectmbo/cardano-db-sync:13.6.0.4
container_name: dbsync
environment:
- DISABLE_LEDGER=false
- POSTGRES_PASS=/app/config/pg_passwd
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- POSTGRES_PASSWORD=example
- POSTGRES_USER=postgres
- RESTORE_SNAPSHOT=${RESTORE_SNAPSHOT:-}
- RESTORE_RECREATE_DB=N
# - EXTRA_DB_SYNC_ARGS=
# - NETWORK=private
depends_on:
postgres:
condition: service_healthy
volumes:
- ./dbsync/cexplorer:/var/lib/cexplorer
- ./cluster:/app/cardano-node/example
- ./infrastructure-resources/dbsync/config/:/app/config
restart: on-failure
# entrypoint: bash -c "sleep Infinity"
command: "--pg-pass-env POSTGRES_PASS --config /app/config/db-sync-config.json --socket-path /app/cardano-node/example/node-spo1/node.sock"
# if needed
# cardano-wallet:
# container_name: cardano-wallet
# image: cardanofoundation/cardano-wallet:2024.11.18
# volumes:
# - ./wallet-db:/wallet-db
# - ./cluster:/app/cardano-node/example
# ports:
# - 8090:8090
# entrypoint: []
# command: bash -c "$$CMD --testnet /app/cardano-node/example/genesis/byron/genesis.json"
# environment:
# CMD: "cardano-wallet serve --node-socket /app/cardano-node/example/node-spo1/node.sock --database /wallet-db --listen-address 0.0.0.0"
# NETWORK:
# # user: ${USER_ID}
# restart: on-failure
# logging:
# driver: "json-file"
# options:
# compress: "true"
# max-file: "10"
# max-size: "50m"
submit-api:
container_name: submit-api
build:
context: .
ports:
- 8191:8191
volumes:
- ./cluster:/app/cardano-node/example
- ./infrastructure-resources/submit-api/submit-api.config:/config/submit-api.config:ro
command: /app/bin/cardano-submit-api --testnet-magic 42 --socket-path /app/cardano-node/example/node-spo1/node.sock --port 8191 --config /config/submit-api.config --listen-address 0.0.0.0
# https://blockfrost.dev/api/blockfrost-io-api-documentation
blockfrost-ryo:
# image: blockfrost/backend-ryo:v2.2.0 # 2024-09-22 does not work on nami fork.
# Error in /epochs/latest/parameters. Error: Release called on client which has already been released to the pool.
# image: blockfrost/backend-ryo:v2.2.2 and v2.2.3 # 2024-10-19 error still present, NAMI failed after a few.
# image: blockfrost/backend-ryo:v2.1.0
# 2024-11-02 - testing 2.2.4
image: blockfrost/backend-ryo:v2.2.4
container_name: blockfrost-ryi
ports:
- 3010:3010
environment:
- BLOCKFROST_CONFIG_SERVER_LISTEN_ADDRESS=0.0.0.0
- BLOCKFROST_CONFIG_SERVER_PORT=3010
- BLOCKFROST_CONFIG_SERVER_DEBUG=true
- BLOCKFROST_CONFIG_SERVER_PROMETHEUS_METRICS=true
- BLOCKFROST_CONFIG_DBSYNC_HOST=postgres
- BLOCKFROST_CONFIG_DBSYNC_USER=postgres
- BLOCKFROST_CONFIG_DBSYNC_PASSWORD=example
- BLOCKFROST_CONFIG_DBSYNC_DATABASE=cexplorer
- BLOCKFROST_CONFIG_DBSYNC_MAX_CONN=10
- BLOCKFROST_CONFIG_TOKEN_REGISTRY_URL=http://token-registry:5678
- BLOCKFROST_CONFIG_NETWORK=testnet
- BLOCKFROST_MITHRIL_ENABLED=false
# It does actually nothing, but it was blocking the blockfrost and nami wallet
token-registry:
image: hashicorp/http-echo:latest
container_name: token-registry
ports:
- 8011:5678
command: ["-text=Hello, World!", "-listen=:5678"]
faucet-ui:
container_name: faucet-ui
build:
context: ./faucet-ui
env_file: ./faucet-ui/.env
ports:
- 8002:8002