-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.debug.yml
47 lines (45 loc) · 1.09 KB
/
docker-compose.debug.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
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-debug:
tty: true
stdin_open: true
container_name: app-debug
build:
context: ./
volumes:
- ./:/usr/app
- /usr/app/node_modules
depends_on:
- mongo
ports:
- "5000:5000"
- "9229:9229"
- "5858:5858"
restart: on-failure
environment:
- MONGODB_URI=mongodb://mongo/HelloWorld
entrypoint: wait-for-it mongo:27017 -- yarn dev:debug