-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
55 lines (55 loc) · 964 Bytes
/
docker-compose.yaml
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
version: '3'
services:
mongodbusers:
image: mongo:latest
container_name: 'mongodbusers'
ports:
- 27017:27017
api:
build:
context: api
ports:
- 8080:8080
restart: on-failure
volumes:
- ./api:/app
- /app/node_modules
users1:
build:
context: users
environment:
PORT: 4001
ports:
- 4001:4001
restart: on-failure
depends_on:
- 'mongodbusers'
volumes:
- ./users:/app
- /app/node_modules
users2:
build:
context: users
environment:
PORT: 4002
ports:
- 4002:4002
restart: on-failure
depends_on:
- 'mongodbusers'
volumes:
- ./users:/app
- /app/node_modules
users3:
build:
context: users
environment:
PORT: 4003
ports:
- 4003:4003
restart: on-failure
depends_on:
- 'mongodbusers'
volumes:
- ./users:/app
- /app/node_modules