-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 1.27 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
version: "3"
services:
njs1:
build: ./njs1
command: sh -c "npm install && npm start"
environment:
- NODE_ENV=development
- PORT=7000
ports:
- "7000:7000"
working_dir: /root/njs1
volumes:
- ./njs1:/root/njs1:cached # <--- This will map ./njs1 to /root/njs1 inside the container.
njs2:
image: node:12.3-alpine
command: sh -c "npm install && npm start"
environment:
- NODE_ENV=development
- PORT=8000
ports:
- "8000:8000"
working_dir: /root/njs2
volumes:
- ./njs2:/root/njs2:cached # <--- This will map ./njs2 to /root/njs2 inside the container.
py1:
image: python:3-stretch
command: sh -c "pip install -r requirements.txt && python -m server"
environment:
- PORT=9000
- FLASK_ENV=development
ports:
- "9000:9000"
working_dir: /root/py1
volumes:
- ./py1:/root/py1:cached # <--- This will map ./py1 to /root/py1 inside the container.
go1:
image: golang:1.12-alpine
command: sh -c "go run ."
environment:
- PORT=5000
ports:
- "5000:5000"
working_dir: /root/go1
volumes:
- ./go1:/root/go1:cached # <--- This will map ./go1 to /root/go1 inside the container.