forked from omgnetwork/elixir-omg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
92 lines (87 loc) · 2.66 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
version: "2.1"
services:
geth:
image: ethereum/client-go:v1.8.21
entrypoint: /bin/sh -c "apk add curl && geth --targetgaslimit "6200000" --dev --dev.period 1 --rpc --rpcapi personal,web3,eth,net --rpcaddr 0.0.0.0 --rpcvhosts=* --rpcport=8545"
ports:
- "8545:8545"
healthcheck:
test: curl docker.for.mac.localhost:8545
interval: 5s
timeout: 3s
retries: 5
watcher_db:
image: postgres
restart: always
environment:
POSTGRES_USER: omisego_dev
POSTGRES_PASSWORD: omisego_dev
POSTGRES_DB: omisego_dev
ports:
- "5433:5432"
healthcheck:
test: pg_isready -U omisego_dev
interval: 5s
timeout: 3s
retries: 5
elixir-omg:
build: .
image: elixir-omg:dockercompose
contractexchanger:
image: jakebunce/contractexchanger:v0.0.2
ports:
- "5000:5000"
healthcheck:
test: curl docker.for.mac.localhost:5000
interval: 5s
timeout: 3s
retries: 5
depends_on:
geth:
condition: service_healthy
childchain:
image: elixir-omg:dockercompose
entrypoint: /bin/bash -c "./launcher.py && elixir --erl '-sname childchain' -S mix xomg.child_chain.start --config ~/config.exs"
environment:
- MIX_ENV=dev
- EXIT_PERIOD_SECONDS=86400
- ELIXIR_SERVICE=CHILDCHAIN
- CONTRACT_EXCHANGER_URL=http://docker.for.mac.localhost:5000
- ETHEREUM_RPC_URL=http://docker.for.mac.localhost:8545
- CHILD_CHAIN_URL=http://docker.for.mac.localhost:9656
- ETHEREUM_NETWORK=LOCALCHAIN
restart: always
ports:
- "9656:9656"
healthcheck:
test: curl docker.for.mac.localhost:9656
interval: 10s
timeout: 3s
retries: 7
depends_on:
geth:
condition: service_healthy
contractexchanger:
condition: service_healthy
watcher:
image: elixir-omg:dockercompose
entrypoint: /bin/bash -c "./launcher.py && mix ecto.reset --no-start && elixir --erl '-sname watcher' -S mix xomg.watcher.start --convenience --config ~/config_watcher.exs "
environment:
- MIX_ENV=dev
- ELIXIR_SERVICE=WATCHER
- CONTRACT_EXCHANGER_URL=http://docker.for.mac.localhost:5000
- ETHEREUM_RPC_URL=http://docker.for.mac.localhost:8545
- CHILD_CHAIN_URL=http://docker.for.mac.localhost:9656
- ETHEREUM_NETWORK=LOCALCHAIN
- DATABASE_URL=postgres://omisego_dev:omisego_dev@docker.for.mac.localhost:5433/omisego_dev
restart: always
ports:
- "7434:7434"
healthcheck:
test: curl docker.for.mac.localhost:7434
interval: 5s
timeout: 3s
retries: 5
depends_on:
childchain:
condition: service_healthy