-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (58 loc) · 1.47 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
version: '2.3'
services:
mongodb:
image: "mongo:4.1"
volumes:
- ${RN_APP_DATA_DIR}/mongodb:/data/db
ports:
- "27017:27017"
container_name: relnet-mongodb
manager:
image: relnet/relnet-manager
build:
context: .
dockerfile: ./docker/manager/Dockerfile
args:
RN_GID: ${RN_GID}
RN_GNAME: ${RN_GNAME}
volumes:
- ${RN_SOURCE_DIR}:/relnet
- ${RN_EXPERIMENT_DATA_DIR}:/experiment_data
- ${RN_APP_DATA_DIR}/rabbitmq:/var/lib/rabbitmq
- ${RN_APP_DATA_DIR}/flower:/flower
ports:
- "8888:8888"
- "6006:6006"
- "5555:5555"
stdin_open: true
tty: true
# network_mode: host
container_name: relnet-manager
hostname: relnet-manager
environment:
- "RN_GID=${RN_GID}"
- "RN_GNAME=${RN_GNAME}"
- "RN_LABORER_PW=${RN_LABORER_PW}"
- "RN_ADMIN_PW=${RN_ADMIN_PW}"
worker_cpu:
image: relnet/relnet-worker-cpu
build:
context: .
dockerfile: docker/worker_cpu/Dockerfile
args:
RN_GID: ${RN_GID}
RN_GNAME: ${RN_GNAME}
volumes:
- ${RN_EXPERIMENT_DATA_DIR}:/experiment_data
- ${RN_SOURCE_DIR}:/relnet
stdin_open: true
tty: true
# network_mode: host
container_name: relnet-worker-cpu
hostname: relnet-worker-cpu
mem_limit: 144gb
environment:
- "RN_GID=${RN_GID}"
- "RN_GNAME=${RN_GNAME}"
- "RN_LABORER_PW=${RN_LABORER_PW}"
- "RN_ADMIN_PW=${RN_ADMIN_PW}"