-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (41 loc) · 864 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (41 loc) · 864 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
version: "3.4"
services:
master:
build:
context: .
dockerfile: Dockerfile
target: master
ports:
- "8080:8080"
volumes:
- ./data:/usr/src/hiro/data
environment:
- PORT=8080
- WORKERS="127.0.0.1:5002,127.0.0.1:5003"
- DATA_OUT_DIR=/usr/src/hiro/data
worker_1:
build:
context: .
dockerfile: Dockerfile
target: worker
ports:
- "5002:5002"
volumes:
- ./data:/usr/src/hiro/data
environment:
- PORT=5002
- MASTER="127.0.0.1:8080"
- DATA_OUT_DIR=/usr/src/hiro/data
worker_2:
build:
context: .
dockerfile: Dockerfile
target: worker
ports:
- "5003:5003"
volumes:
- ./data:/usr/src/hiro/data
environment:
- PORT=5003
- MASTER="127.0.0.1:8080"
- DATA_OUT_DIR=/usr/src/hiro/data