-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
57 lines (56 loc) · 1.44 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
version: "3.1"
services:
sg-master-01:
container_name: sg01
image: searchgoose:latest
build:
context: .
dockerfile: ./Dockerfile
command: ["./app", "-node.name=sg-node-01", "-seed_hosts=sg-master-02:8180,sg-master-03:8180", "-transport.port=8180" ,"-http.port=8080"]
environment:
- node.name=sg-node-01
- seed_hosts=172.21.2.3:8080,172.21.2.4:8080
ports:
- 8180:8180
- 8080:8080
networks:
- searchgoose
sg-master-02:
container_name: sg02
image: searchgoose:latest
build:
context: .
dockerfile: ./Dockerfile
command: ["./app", "-node.name=sg-node-02", "-seed_hosts=sg-master-01:8180" ,"-transport.port=8180", "-http.port=8080"]
environment:
- node.name=sg-node-02
- seed_hosts=172.21.2.2:8080
- host_address=0.0.0.0
ports:
- 8179:8180
- 8081:8080
links:
- sg-master-01
networks:
- searchgoose
sg-master-03:
container_name: sg03
image: searchgoose:latest
build:
context: .
dockerfile: ./Dockerfile
command: ["./app" ,"-node.name=sg-node-03" ,"-seed_hosts=sg-master-01:8180", "-transport.port=8180", "-http.port=8080"]
environment:
- node.name=sg-node-03
- seed_hosts=172.21.2.2:8080
- host_address=0.0.0.0
ports:
- 8181:8180
- 8082:8080
links:
- sg-master-01
networks:
- searchgoose
networks:
searchgoose:
driver: bridge