-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
60 lines (56 loc) · 1.35 KB
/
docker-compose.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
version: "3.7"
services:
redis:
image: redis:latest
ports:
- "6379:6379"
healthcheck:
test: ["CMD-SHELL", "redis-cli PING"]
interval: 10s
timeout: 5s
retries: 5
ganache:
build:
dockerfile: Dockerfile.ganache
context: docker
ports:
- "8545:8545"
ws-engine:
build:
context: modules
dockerfile: ../docker/Dockerfile.ws-engine
ports:
- "5001:5001"
expose:
- "5001"
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- FASTIFY_PORT=5001
- FASTIFY_ADDRESS=0.0.0.0
depends_on: [eth-engine]
eth-engine:
build:
context: modules
dockerfile: ../docker/Dockerfile.eth-engine
network_mode: host
environment:
- REDIS_HOST=0.0.0.0
- REDIS_PORT=6379
- WEBSOCKET_URL=ws://0.0.0.0:8545
depends_on:
- ganache
- redis
# Due to the websocket lib defaulting to wss, this container doesn't connect to dev env
# You can run the following command to start the ui
# `VITE_WEBSOCKET_URL=ws://localhost:5001/socket yarn workspace @dodo/trading-monitor-ui dev`
# ui:
# build:
# context: modules
# dockerfile: ../docker/Dockerfile.ui
# args:
# - VITE_WEBSOCKET_URL=ws://0.0.0.0:5001/socket
# ports:
# - "3000:80"
# depends_on:
# - ws-engine