-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
44 lines (43 loc) 路 806 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
44 lines (43 loc) 路 806 Bytes
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
services:
client:
build: ./client
ports:
- "3000:3000"
networks:
- iot-network
bank1:
build: ./bank
hostname: bank1
environment:
- SERVER_PORT=3001
- BANK_ID=1
- BANKS=bank1:3001,bank2:3002,bank3:3003
ports:
- "3001:3001"
networks:
- iot-network
bank2:
build: ./bank
hostname: bank2
environment:
- SERVER_PORT=3002
- BANK_ID=2
- BANKS=bank1:3001,bank2:3002,bank3:3003
ports:
- "3002:3002"
networks:
- iot-network
bank3:
build: ./bank
hostname: bank3
environment:
- SERVER_PORT=3003
- BANK_ID=3
- BANKS=bank1:3001,bank2:3002,bank3:3003
ports:
- "3003:3003"
networks:
- iot-network
networks:
iot-network:
driver: bridge