forked from HydroProtocol/hydro-scaffold-dex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-rinkeby.yaml
142 lines (142 loc) · 4.92 KB
/
docker-compose-rinkeby.yaml
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
version: "3"
volumes:
datavolume: {}
services:
redis:
container_name: hydro-box-dex-redis
image: redis:5.0
ports:
- 6379:6379
restart: on-failure:5
db:
image: postgres
container_name: hydro-box-dex-pg
ports:
- 5432:5432
restart: always
volumes:
- datavolume:/var/lib/postgresql/data
- ./backend/db/migrations/0001-init.up.sql:/docker-entrypoint-initdb.d/0001-init.up.sql
- ./envs/rinkeby/seed.sql:/docker-entrypoint-initdb.d/0002-seed.sql
web:
image: hydroprotocolio/hydro-box-dex-web:latest
container_name: hydro-box-dex-web
ports:
- 3000:8043
environment:
- CONFIG_VARS=REACT_APP_API_URL,REACT_APP_WS_URL,REACT_APP_NODE_URL,REACT_APP_HYDRO_PROXY_ADDRESS,REACT_APP_HYDRO_TOKEN_ADDRESS,REACT_APP_WETH_TOKEN_ADDRESS,REACT_APP_NETWORK_ID
- REACT_APP_API_URL=http://localhost:3001
- REACT_APP_WS_URL=ws://localhost:3002
- REACT_APP_NODE_URL=https://rinkeby.infura.io/v3/cabc724fb9534d1bb245582a74ccf3e7
- REACT_APP_HYDRO_PROXY_ADDRESS=0x67a4e271949cd9a5b704904fc316ef507d8c7beb
- REACT_APP_HYDRO_TOKEN_ADDRESS=0xd586fefc58865884d1ba69646c9ed587ce9dd0e6
- REACT_APP_WETH_TOKEN_ADDRESS=0xc778417e063141139fce010982780140aa0cd5ab
- REACT_APP_NETWORK_ID=4
restart: on-failure:5
admin:
image: hydroprotocolio/hydro-box-dex-backend:latest
container_name: hydro-box-dex-admin-api
command: /bin/adminapi
ports:
- 3003:3003
environment:
- HSK_DATABASE_URL=postgres://postgres:postgres@db/postgres?sslmode=disable
- HSK_REDIS_URL=redis://redis:6379/0
- HSK_BLOCKCHAIN_RPC_URL=https://rinkeby.infura.io/v3/cabc724fb9534d1bb245582a74ccf3e7
- HSK_LOG_LEVEL=ERROR
- WEB_HEALTH_CHECK_URL=http://web:8043
- API_HEALTH_CHECK_URL=http://api:4001/metrics
- ENGINE_HEALTH_CHECK_URL=http://engine:4004/metrics
- LAUNCHER_HEALTH_CHECK_URL=http://launcher:4005/metrics
- WATCHER_HEALTH_CHECK_URL=http://watcher:4003/metrics
- WEBSOCKET_HEALTH_CHECK_URL=http://ws:4002/metrics
volumes:
- datavolume:/data
depends_on:
- db
- redis
restart: on-failure:5
api:
image: hydroprotocolio/hydro-box-dex-backend:latest
container_name: hydro-box-dex-api
command: /bin/api
ports:
- 3001:3001
environment:
- HSK_DATABASE_URL=postgres://postgres:postgres@db/postgres?sslmode=disable
- HSK_REDIS_URL=redis://redis:6379/0
- HSK_HYBRID_EXCHANGE_ADDRESS=0x5842e020ce9928f878777c1e3b62a790e425fcc4
- HSK_BLOCKCHAIN_RPC_URL=https://rinkeby.infura.io/v3/cabc724fb9534d1bb245582a74ccf3e7
- HSK_HYDRO_TOKEN_ADDRESS=0xd586fefc58865884d1ba69646c9ed587ce9dd0e6
- HSK_PROXY_ADDRESS=0x67a4e271949cd9a5b704904fc316ef507d8c7beb
- HSK_RELAYER_ADDRESS=___CHANGE_ME___
- HSK_LOG_LEVEL=DEBUG
volumes:
- datavolume:/data
depends_on:
- db
- redis
restart: on-failure:5
ws:
image: hydroprotocolio/hydro-box-dex-backend:latest
container_name: hydro-box-dex-ws
command: /bin/websocket
ports:
- 3002:3002
environment:
- HSK_API_URL=http://api:3001
- HSK_REDIS_URL=redis://redis:6379/0
- HSK_LOG_LEVEL=DEBUG
volumes:
- datavolume:/data
depends_on:
- redis
- api
restart: on-failure:5
watcher:
image: hydroprotocolio/hydro-box-dex-backend:latest
container_name: hydro-box-dex-watcher
command: /bin/watcher
environment:
- HSK_DATABASE_URL=postgres://postgres:postgres@db/postgres?sslmode=disable
- HSK_REDIS_URL=redis://redis:6379/0
- HSK_BLOCKCHAIN_RPC_URL=https://rinkeby.infura.io/v3/cabc724fb9534d1bb245582a74ccf3e7
- HSK_LOG_LEVEL=DEBUG
- HSK_HYBRID_EXCHANGE_ADDRESS=0x5842e020ce9928f878777c1e3b62a790e425fcc4
volumes:
- datavolume:/data
depends_on:
- redis
- db
restart: on-failure:5
engine:
image: hydroprotocolio/hydro-box-dex-backend:latest
container_name: hydro-box-dex-engine
command: /bin/engine
environment:
- HSK_DATABASE_URL=postgres://postgres:postgres@db/postgres?sslmode=disable
- HSK_REDIS_URL=redis://redis:6379/0
- HSK_HYBRID_EXCHANGE_ADDRESS=0x5842e020ce9928f878777c1e3b62a790e425fcc4
- HSK_LOG_LEVEL=DEBUG
volumes:
- datavolume:/data
depends_on:
- redis
- db
restart: on-failure:5
launcher:
image: hydroprotocolio/hydro-box-dex-backend:latest
container_name: hydro-box-dex-launcher
command: /bin/launcher
environment:
- HSK_DATABASE_URL=postgres://postgres:postgres@db/postgres?sslmode=disable
- HSK_BLOCKCHAIN_RPC_URL=https://rinkeby.infura.io/v3/cabc724fb9534d1bb245582a74ccf3e7
- HSK_HYBRID_EXCHANGE_ADDRESS=0x5842e020ce9928f878777c1e3b62a790e425fcc4
- HSK_RELAYER_ADDRESS=___CHANGE_ME___
- HSK_RELAYER_PK=___CHANGE_ME___
- HSK_LOG_LEVEL=DEBUG
volumes:
- datavolume:/data
depends_on:
- db
restart: on-failure:5