forked from Gan-Tu/cppGFS2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (67 loc) · 1.82 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
version: "3.7" # version of docker compose syntax
services:
# Start master server #1 on port 50051
master_server_01:
container_name: master_server_01
build:
context: .
dockerfile: Dockerfile
image: gfs-image
command: bazel run src/server/master_server:run_master_server_main --
--config_path=data/config.yml
--use_docker_dns_server
--master_name=master_server_01
working_dir: /app
ports:
- 50051:50051
volumes:
- ./:/app
restart: unless-stopped
# Start chunk server #1 on port 50052
chunk_server_01:
container_name: chunk_server_01
image: gfs-image
command: bazel run src/server/chunk_server:run_chunk_server_main --
--config_path=data/config.yml
--use_docker_dns_server
--chunk_server_name=chunk_server_01
ports:
- 50052:50052
depends_on:
- master_server_01
working_dir: /app
volumes:
- ./:/app
restart: unless-stopped
# Start chunk server #2 on port 50053
chunk_server_02:
container_name: chunk_server_02
image: gfs-image
command: bazel run src/server/chunk_server:run_chunk_server_main --
--config_path=data/config.yml
--use_docker_dns_server
--chunk_server_name=chunk_server_02
ports:
- 50053:50053
depends_on:
- master_server_01
working_dir: /app
volumes:
- ./:/app
restart: unless-stopped
# Start chunk server #3 on port 50054
chunk_server_03:
container_name: chunk_server_03
image: gfs-image
command: bazel run src/server/chunk_server:run_chunk_server_main --
--config_path=data/config.yml
--use_docker_dns_server
--chunk_server_name=chunk_server_03
ports:
- 50054:50054
depends_on:
- master_server_01
working_dir: /app
volumes:
- ./:/app
restart: unless-stopped