forked from swimlane/node-microservice-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (49 loc) · 1.11 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
version: '2'
services:
neo4j:
container_name: ms_neo4j
image: neo4j:latest
environment:
- NEO4J_AUTH=none
ports:
- "7474:7474"
- "7687:7687"
mongo:
container_name: ms_mongo
image: mongo:latest
ports:
- "27017:27017"
volumes:
- "./mongo/db:/data/db"
nginx:
build: ./nginx
container_name: ms_nginx
links:
- petstore
- users
ports:
- "80:80"
petstore:
build: ./petstore
container_name: ms_petstore
environment:
- loglevel=none
links:
- "mongo:mongo"
volumes:
- "./petstore:/src/app"
working_dir: "/src/app"
ports:
- "8080:8080"
- "5858:5858"
# command: npm run start
command: npm run start:dev
users:
build: ./users
container_name: ms_users
links:
- neo4j
volumes:
- "./users:/src/app"
working_dir: "/src/app"
command: npm start