-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (44 loc) · 1.07 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
version: "3"
volumes:
bitcoin:
services:
bitcoind:
image: kylemanna/bitcoind:latest
ports:
- "18333:18333"
volumes:
- ./bitcoin:/bitcoin/.bitcoin
healthcheck:
test:
[
"CMD",
"/bin/sh",
"-c",
"bitcoin-cli --rpcconnect=bitcoind --rpcport=8332 --rpccookiefile=/bitcoin/.bitcoin/regtest/.cookie getblockcount",
]
interval: 10s
timeout: 5s
retries: 5
ord:
build:
context: ./ordinals
volumes:
- ./bitcoin:/bitcoin/.bitcoin
- ./ordinals/init.sh:/usr/local/bin/init.sh
- ./ordinals/keep_going.png:/ordinals/keep_going.png
- ./ordinals/keep_going.svg:/ordinals/keep_going.svg
- ./ordinals/projects:/ordinals/projects
depends_on:
bitcoind:
condition: service_healthy
command: init.sh
ports:
- "0.0.0.0:8080:8080"
tty: true
healthcheck:
test:
["CMD", "/bin/sh", "-c", "curl --fail http://localhost:8080 || exit 1"]
interval: 20s
timeout: 5s
retries: 5
start_period: 20s