This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose.yml
114 lines (108 loc) · 3.79 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
#
# To use this, run
#
# cape-demo-geth
#
# In a separate terminal and wait for the "setup completed" message in the
# terminal. Keep the terminal open and in another terminal run
#
# docker compose --env-file demo/compose.env up
#
version: "3.9"
services:
wallet-api-alice:
image: ${CAPE_WALLET_IMAGE:-ghcr.io/espressosystems/cape/wallet:main}
ports:
- $CAPE_WALLET_PORT_ALICE:$CAPE_WALLET_PORT_ALICE
environment:
- CAPE_ADDRESS_BOOK_URL=http://address-book:$CAPE_ADDRESS_BOOK_PORT
- CAPE_CONTRACT_ADDRESS=$CAPE_CONTRACT_ADDRESS
- CAPE_EQS_URL=http://eqs:$CAPE_EQS_PORT
- CAPE_FAUCET_URL=http://faucet:$CAPE_FAUCET_PORT
- CAPE_RELAYER_URL=http://relayer:$CAPE_RELAYER_PORT
- CAPE_WALLET_PORT=$CAPE_WALLET_PORT_ALICE
- CAPE_WEB3_PROVIDER_URL=http://geth:8545
- RUST_BACKTRACE=1
- RUST_LOG=info
depends_on:
- geth
wallet-api-bob:
image: ${CAPE_WALLET_IMAGE:-ghcr.io/espressosystems/cape/wallet:main}
ports:
- $CAPE_WALLET_PORT_BOB:$CAPE_WALLET_PORT_BOB
environment:
- CAPE_ADDRESS_BOOK_URL=http://address-book:$CAPE_ADDRESS_BOOK_PORT
- CAPE_CONTRACT_ADDRESS=$CAPE_CONTRACT_ADDRESS
- CAPE_EQS_URL=http://eqs:$CAPE_EQS_PORT
- CAPE_FAUCET_URL=http://faucet:$CAPE_FAUCET_PORT
- CAPE_RELAYER_URL=http://relayer:$CAPE_RELAYER_PORT
- CAPE_WALLET_PORT=$CAPE_WALLET_PORT_BOB
- CAPE_WEB3_PROVIDER_URL=http://geth:8545
- RUST_BACKTRACE=1
- RUST_LOG=info
depends_on:
- geth
relayer:
image: ${CAPE_SERVICES_IMAGE:-ghcr.io/espressosystems/cape/services:main}
ports:
- $CAPE_RELAYER_PORT:$CAPE_RELAYER_PORT
# Panics if it can't connect to geth on startup.
command: sh -c "sleep 5 && /app/relayer/minimal-relayer"
environment:
- CAPE_CONTRACT_ADDRESS=$CAPE_CONTRACT_ADDRESS
- CAPE_EQS_URL=http://eqs:$CAPE_RELAYER_PORT
- CAPE_RELAYER_PORT=$CAPE_RELAYER_PORT
- CAPE_RELAYER_WALLET_MNEMONIC=$CAPE_RELAYER_WALLET_MNEMONIC
- CAPE_WEB3_PROVIDER_URL=http://geth:8545
- RUST_BACKTRACE=1
- RUST_LOG=info
depends_on:
- geth
eqs:
image: ${CAPE_SERVICES_IMAGE:-ghcr.io/espressosystems/cape/services:main}
ports:
- $CAPE_EQS_PORT:$CAPE_EQS_PORT
# Panics if it can't connect to geth on startup.
command: sh -c "sleep 5 && /app/eqs/eqs"
working_dir: /app/eqs
environment:
- CAPE_CONTRACT_ADDRESS=$CAPE_CONTRACT_ADDRESS
- CAPE_EQS_PORT=$CAPE_EQS_PORT
- CAPE_EQS_NUM_CONFIRMATIONS=1 # More responsive local demo.
- CAPE_WEB3_PROVIDER_URL=http://geth:8545
- RUST_BACKTRACE=1
- RUST_LOG=info
depends_on:
- geth
faucet:
image: ${CAPE_SERVICES_IMAGE:-ghcr.io/espressosystems/cape/services:main}
ports:
- $CAPE_FAUCET_PORT:$CAPE_FAUCET_PORT
command: /app/faucet/faucet
environment:
- CAPE_ADDRESS_BOOK_URL=http://address-book:$CAPE_ADDRESS_BOOK_PORT
- CAPE_CONTRACT_ADDRESS=$CAPE_CONTRACT_ADDRESS
- CAPE_EQS_URL=http://eqs:$CAPE_EQS_PORT
- CAPE_FAUCET_PORT=$CAPE_FAUCET_PORT
- CAPE_FAUCET_WALLET_MNEMONIC=$CAPE_FAUCET_WALLET_MNEMONIC
- CAPE_FAUCET_WALLET_PATH=/data
- CAPE_RELAYER_URL=http://relayer:$CAPE_RELAYER_PORT
- CAPE_WEB3_PROVIDER_URL=http://geth:8545
- RUST_BACKTRACE=1
- RUST_LOG=info
depends_on:
- geth
address-book:
image: ${CAPE_SERVICES_IMAGE:-ghcr.io/espressosystems/cape/services:main}
ports:
- $CAPE_ADDRESS_BOOK_PORT:$CAPE_ADDRESS_BOOK_PORT
command: /app/address-book/address-book
env_file: demo/compose.env
environment:
- CAPE_ADDRESS_BOOK_PORT=$CAPE_ADDRESS_BOOK_PORT
- RUST_BACKTRACE=1
- RUST_LOG=info
geth:
image: ${CAPE_GETH_IMAGE:-ghcr.io/espressosystems/cape/geth:main}
ports:
- 8545:8545