-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
78 lines (76 loc) · 1.68 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
68
69
70
71
72
73
74
75
76
77
78
# Launch & Build a bunch containers with workers and one service for them.
version: "2"
services:
w_alpha:
# build: ./rapid_miner_worker/
build: ./worker/
container_name: w_alpha
environment:
- workername=alpha
networks:
- worker_net
ports:
- "1831:8080" # if direct access is required
# volumes:
# - "./rapid_miner_worker:/usr/src/app"
w_beta:
# build: ./rapid_miner_worker/
build: ./worker/
container_name: w_beta
environment:
- workername=beta
networks:
- worker_net
ports:
- "1832:8080" # if direct access is required
# volumes:
# - "./worker:/usr/src/app"
w_gamma:
build: ./worker/
container_name: w_gamma
environment:
- workername=gamma
networks:
- worker_net
ports:
- "1833:8080" # if direct access is required
# volumes:
# - "./rapid_miner_worker:/usr/src/app"
w_service:
build: ./worker_service/
command: python3 intro.py
# command: sh
stdin_open: true
tty: true
container_name: w_service
networks:
worker_net:
aliases:
- w_service
ports:
- "80:80"
volumes:
- "./worker_service:/usr/src/app"
# depends_on:
# - "w_alpha"
# - "w_beta"
environment:
- FLASK_APP=worker_service/__init__.py
- FLASK_DEBUG=1
main_node:
build: ./main-node/
command: /usr/sbin/sshd -D
tty: true
container_name: main-node
networks:
- worker_net
ports:
- "2222:2222"
- "9000:9000"
depends_on:
- "w_service"
# volumes:
# - "./main-node/Results:/root/Results"
networks:
worker_net:
driver: bridge