-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
185 lines (183 loc) · 5.06 KB
/
docker-compose.yml
File metadata and controls
185 lines (183 loc) · 5.06 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
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
180
181
182
183
184
185
version: "3"
services:
regtest:
image: bitcoin/bitcoin:28.1
restart: always
ports:
- 18443:18443
entrypoint: bitcoind -regtest -txindex
volumes:
- bitcoin:/root/.bitcoin
- ./packages/regtest/bitcoin.conf:/root/.bitcoin/bitcoin.conf
ord:
image: brandonjroberts/ord:0.22.2-ca9950a1
restart: always
ports:
- 8553:8553
entrypoint: ord --regtest --bitcoin-rpc-url http://broly-regtest-1:18443 --bitcoin-rpc-username user --bitcoin-rpc-password password --bitcoin-data-dir /root/.bitcoin server --http-port 8553
links:
- regtest
volumes:
- bitcoin:/root/.bitcoin
ordinit:
build:
dockerfile: ./Dockerfile.ordinit
context: packages/regtest
depends_on:
- ord
restart: no
volumes:
- bitcoin:/root/.bitcoin
- ./packages/regtest/bitcoin.conf:/root/.bitcoin/bitcoin.conf
reginit:
build:
dockerfile: ./Dockerfile.reginit
context: packages/regtest
depends_on:
ord:
condition: service_started
ordinit:
condition: service_completed_successfully
volumes:
- bitcoin:/root/.bitcoin
- ./packages/regtest/bitcoin.conf:/root/.bitcoin/bitcoin.conf
updater:
build:
dockerfile: ./Dockerfile.update
context: packages/regtest
restart: always
depends_on:
ord:
condition: service_started
ordinit:
condition: service_completed_successfully
reginit:
condition: service_completed_successfully
environment:
- REGTEST_HOST=broly-regtest-1
volumes:
- bitcoin:/root/.bitcoin
- ./packages/regtest/bitcoin.conf:/root/.bitcoin/bitcoin.conf
redis:
image: redis:7.2.4-alpine
restart: always
ports:
- 6379:6379
command: redis-server
volumes:
- redis:/data
postgres:
image: postgres:14.11-alpine
restart: always
ports:
- 5432:5432
volumes:
- postgres:/var/lib/postgresql/data
- ./apps/backend/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=broly-user
- POSTGRES_DB=broly-db
backend:
build:
dockerfile: apps/backend/Dockerfile
context: .
ports:
- 8080:8080
links:
- redis
- postgres
restart: always
environment:
- POSTGRES_PASSWORD=password
- CONFIG_PATH=/configs/config.yaml
volumes:
- ./inscriptions:/app/inscriptions
websockets:
build:
dockerfile: apps/backend/Dockerfile.websockets
context: .
ports:
- 8083:8083
links:
- consumer
restart: always
consumer:
build:
dockerfile: apps/backend/Dockerfile.consumer
context: .
ports:
- 8081:8081
links:
- redis
- postgres
restart: always
environment:
- POSTGRES_PASSWORD=password
- CONFIG_PATH=/configs/config.yaml
- BROLY_ORDERBOOK_CONTRACT_ADDRESS=0x01888434b64e6b81488bc7b3a7148aa5fccc695591225351227a4314da6a64d5
inscriber:
build:
dockerfile: apps/backend/Dockerfile.inscriber
context: .
links:
- backend
- indexer
- ord
- regtest
- updater
restart: always
environment:
- CONFIG_PATH=/configs/config.yaml
- SCRIPT_CONFIG_PATH=/configs/script-config.yaml
- KEYSTORE_PATH=/app/account/test.key
- ACCOUNT_FILE=/app/account/account.json
- BROLY_ORDERBOOK_CONTRACT_ADDRESS=0x01888434b64e6b81488bc7b3a7148aa5fccc695591225351227a4314da6a64d5
- BITCOIN_RPC_URL=http://broly-regtest-1:18443
- BITCOIN_RPC_USER=user
- BITCOIN_RPC_PASSWORD=password
- BITCOIN_DATA_DIR=/root/.bitcoin
- ORD_SERVER_URL=http://broly-ord-1:8553
volumes:
- bitcoin:/root/.bitcoin
- ./account:/app/account
indexer:
build:
dockerfile: packages/indexer/Dockerfile
context: .
links:
- backend
environment:
- BROLY_CONTRACT_ADDRESS=0x01888434b64e6b81488bc7b3a7148aa5fccc695591225351227a4314da6a64d5
- AUTH_TOKEN=${APIBARA_AUTH_TOKEN}
- CONSUMER_TARGET_URL=http://broly-consumer-1:8081/consume-indexer-msg
- APIBARA_STREAM_URL=https://sepolia.starknet.a5a.ch
- PERSIST_TO_REDIS=redis://broly-redis-1:6379
- INDEXER_ID=broly-indexer-id
restart: on-failure
depends_on:
- consumer
frontend:
build:
dockerfile: apps/web/Dockerfile
context: .
ports:
- 5173:5173
links:
- backend
environment:
- VITE_STRK_CONTRACT_ADDRESS=0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d
- VITE_BROLY_CONTRACT_ADDRESS=0x01888434b64e6b81488bc7b3a7148aa5fccc695591225351227a4314da6a64d5
- VITE_USE_MOCK=false
- VITE_BACKEND_URL=https://api.broly-btc.com
volumes:
- ./package.json:/app/package.json
- ./pnpm-lock.yaml:/app/pnpm-lock.yaml
- ./pnpm-workspace.yaml:/app/pnpm-workspace.yaml
- ./apps/web/package.json:/app/apps/web/package.json
- ./apps/web/public/:/app/apps/web/public
- ./apps/web/src:/app/apps/web/src
volumes:
redis:
postgres:
bitcoin: