-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (58 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
59 lines (58 loc) · 1.15 KB
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
version: '3'
services:
nodejs:
container_name: restful-nodejs
command: ["npm", "start"]
image: node:8.10.0
working_dir: /usr/src/app
restart: always
tty: false
ports:
- "8001:8001"
volumes:
- ./project:/usr/src/app
networks:
- restful-net
depends_on:
- mongo
mongo:
container_name: restful-mongo
image: mongo
ports:
- "27017:27017"
volumes:
- restful-mongo:/data/db
networks:
- restful-net
mongo-express:
container_name: restful-mongo-express
image: mongo-express
ports:
- "8081:8081"
restart: always
tty: true
environment:
- "ME_CONFIG_MONGODB_SERVER=mongo"
- "ME_CONFIG_BASICAUTH_USERNAME="
- "ME_CONFIG_BASICAUTH_PASSWORD="
networks:
- restful-net
depends_on:
- mongo
swagger-ui:
container_name: restful-swagger-ui
image: swaggerapi/swagger-ui
restart: always
tty: true
ports:
- "80:8080"
environment:
- "API_URL=http://localhost:8001/swagger"
networks:
- restful-net
depends_on:
- nodejs
networks:
restful-net:
volumes:
restful-mongo: