Added 2 nodes in docker-compose for cluster testing

This commit is contained in:
Kelvin Clement Mwinuka
2023-07-23 02:56:54 +08:00
parent dc5ff9855d
commit 52eaa6b735
4 changed files with 59 additions and 9 deletions
+45
View File
@@ -15,9 +15,54 @@ services:
- PORT=7480
- RAFTPORT=8000
- MLPORT=7946
- KEY=""
- CERT=""
- SERVERID=1
ports:
- "7480:7480"
- "7946:7946"
- "8000:8000"
networks:
- testnet
node2:
container_name: node2
build:
context: .
dockerfile: ./server/Dockerfile
environment:
- BINDADDR=0.0.0.0
- PORT=7480
- RAFTPORT=8000
- MLPORT=7946
- KEY=""
- CERT=""
- SERVERID=2
- JOINADDR=node1:7946
ports:
- "7481:7480"
- "7947:7946"
- "8001:8000"
networks:
- testnet
node3:
container_name: node3
build:
context: .
dockerfile: ./server/Dockerfile
environment:
- BINDADDR=0.0.0.0
- PORT=7480
- RAFTPORT=8000
- MLPORT=7946
- KEY=""
- CERT=""
- SERVERID=3
- JOINADDR=node1:7946
ports:
- "7482:7480"
- "7948:7946"
- "8002:8000"
networks:
- testnet