-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (44 loc) · 1.03 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
version: "3"
services:
mongo:
container_name: mongo
image: mongo
ports:
- "27017:27017"
volumes:
- ./data:/data/db:Z
logging:
driver: none
healthcheck:
test: nc -z 27017
mongo-express:
container_name: mongo-express
build:
context: .
dockerfile: Dockerfile-ME
depends_on:
- mongo
ports:
- "1234:1234"
- "8081:8081"
logging:
driver: none
entrypoint: ./wait.sh mongo:27017 -- node app
app:
tty: true
stdin_open: true
container_name: app
build:
context: ./
volumes:
- ./:/usr/app:Z
depends_on:
- mongo
ports:
- "5000:5000"
- "9229:9229"
- "5858:5858"
# restart: on-failure
environment:
- DB=mongodb://mongo/HelloWorld
entrypoint: wait-for-it mongo:27017 -- yarn dev