forked from scalalang2/cosmfaucet
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
78 lines (73 loc) · 1.83 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
version: '3.4'
services:
testchain-1:
container_name: testchain-1
image: tendermint/gaia:v4.2.0
restart: always
user: root
volumes:
- ./scripts:/home
command:
- /bin/sh
- -c
- |
echo "start run single node."
/home/init_chain.sh cosmos1u9vn33qs6jdr3wwq4u2l9p349n9c95uxz2lew0 uatom gaia
ports:
- "26657:26657"
- "1317:1317"
testchain-2:
container_name: testchain-2
image: tendermint/gaia:v4.2.0
restart: always
user: root
volumes:
- ./scripts:/home
command:
- /bin/sh
- -c
- |
echo "start run single node."
/home/init_chain.sh cosmos10hhwf89y3gvum4xyzlyz48zxldjehlqzf4dlwt ujuno juno
ports:
- "26658:26657"
- "1318:1317"
relayer:
container_name: relayer
image: relayer
build:
context: ./relayer
dockerfile: Dockerfile.relayer
volumes:
- ./relayer/:/home/relayer/tmp/
command:
- /bin/sh
- -c
- |
RELAYER_HOME=/home/relayer/.relayer/config
while ! nc -z testchain-1 26657; do sleep 1; done
while ! nc -z testchain-2 26657; do sleep 1; done
# sleep enough for at least two blocks to be issued.
sleep 30;
mkdir -p $RELAYER_HOME
cp -r /home/relayer/tmp/* $RELAYER_HOME/
chmod u+x $RELAYER_HOME/start.sh
$RELAYER_HOME/start.sh
faucet:
depends_on:
- testchain-1
- testchain-2
build:
context: ..
restart: always
volumes:
- ./configs:/app/config/
command:
- /bin/sh
- -c
- |
echo "start run faucet."
/app/server --config-file /app/config/config.yml
ports:
- "8080:8080"
- "9092:9092"