-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 784 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
42 lines (39 loc) · 784 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
version: '3.8'
services:
boot-node:
build:
context: .
dockerfile: Dockerfile
environment:
- BOOT_NODE=true
- DISCOVERY_TYPE=gossip
- PORT=3000
- BOOT_NODE_URI=192.168.100.100:3000
volumes:
- ./tmp:/app/tmp
ports:
- "8000:3000"
networks:
custom-network:
ipv4_address: 192.168.100.100
raft-node:
build:
context: .
dockerfile: Dockerfile
environment:
- BOOT_NODE=false
- DISCOVERY_TYPE=gossip
- PORT=3000
- BOOT_NODE_URI=192.168.100.100:3000
volumes:
- ./tmp:/app/tmp
depends_on:
- boot-node
networks:
- custom-network
networks:
custom-network:
driver: bridge
ipam:
config:
- subnet: 192.168.100.0/24