-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose_v1.yml
54 lines (54 loc) · 1.61 KB
/
docker-compose_v1.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
version: '3'
services:
web-app:
image: node
command:
sh -c "cd app &&
apt-get update &&
apt-get install -y libgif-dev &&
npm install &&
npm run serve"
volumes:
- ./cosmo-frontend/:/app/
- /app/node_modules
ports:
- 8070:8070
python-service:
image: python:latest
command:
sh -c "cd app &&
pip install -r requirements.txt &&
python3 app.py"
volumes:
- ./cosmo-backend/python-server/app.py:/app/app.py
- ./cosmo-backend/python-server/data/:/app/data/
- ./cosmo-backend/python-server/requirements.txt:/app/requirements.txt
ports:
- 5500:5500
r-service:
image: rocker/r-base
command:
sh -c "cd /app/R-server &&
apt-get update &&
cat libraries-bin.txt | xargs apt-get install -y -qq &&
Rscript libraries.R &&
Rscript api-controller.R"
volumes:
- ./cosmo-backend/R-server/api-controller.R:/app/R-server/api-controller.R
- ./cosmo-backend/R-server/libraries.R:/app/R-server/libraries.R
- ./cosmo-backend/R-server/libraries-bin.txt:/app/R-server/libraries-bin.txt
- ./cosmo-backend/R-server/data/:/app/R-server/data/
- ./cosmo-backend/R-server/rscript/:/app/R-server/rscript/
ports:
- 5000:5000
json-service:
image: node:alpine
command:
sh -c "cd app &&
npm install &&
node json-server/server.js"
volumes:
- ./cosmo-backend/json-server/package.json:/app/package.json
- ./cosmo-backend/json-server/json-server/:/app/json-server/
ports:
- 5300:5300