-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
75 lines (70 loc) · 1.53 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
version: "3.8"
services:
react-dashboard:
build:
context: ./cmd/react_dashboard
dockerfile: Dockerfile
container_name: react-dashboard
restart: unless-stopped
ports:
- 3000:3000
environment:
- REACT_APP_GATEWAY_API_URL=http://localhost:${WALLET_SERVER_PORT}
volumes:
- ./cmd/react_dashboard:/app
- ./cmd/react_dashboard/node_modules:/app/node_modules
wallet-server:
container_name: wallet-server
build:
context: .
dockerfile: ./cmd/wallet_server/Dockerfile
ports:
- 5000:5000
environment:
- PORT=${WALLET_SERVER_PORT}
- MINER_HOST=miner-1
volumes:
- .:/app
restart: unless-stopped
miner-1:
build:
context: .
dockerfile: ./cmd/blockchain_server/Dockerfile
container_name: miner-1
ports:
- 5001:5001
environment:
- COMMAND=air
- PORT=5001
- MINER_HOST=miner
volumes:
- .:/app
restart: unless-stopped
miner-2:
build:
context: .
dockerfile: ./cmd/blockchain_server/Dockerfile
container_name: miner-2
ports:
- 5002:5002
environment:
- COMMAND=air
- PORT=5002
- MINER_HOST=miner
volumes:
- .:/app
restart: unless-stopped
miner-3:
build:
context: .
dockerfile: ./cmd/blockchain_server/Dockerfile
container_name: miner-3
ports:
- 5003:5003
environment:
- COMMAND=air
- PORT=5003
- MINER_HOST=miner
volumes:
- .:/app
restart: unless-stopped