-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·49 lines (45 loc) · 925 Bytes
/
docker-compose.yml
File metadata and controls
executable file
·49 lines (45 loc) · 925 Bytes
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
version: "3.8"
networks:
bridge:
driver: bridge
name: local
volumes:
mongo-data:
node-modules-cache:
services:
app:
image: zrp/node-functional-boilerplate:nightly
container_name: app
hostname: app
networks:
- bridge
build:
context: .
target: development
args:
APP_PATH: /home/node/app
env_file: .docker.env
command: npm run debug
volumes:
- ./:/home/node/app
- node-modules-cache:/home/node/app/node_modules
ports:
- 3000:3000
- 9229:9229
depends_on:
- mongo
mongo:
container_name: mongo
hostname: mongo
networks:
- bridge
image: mongo
restart: always
volumes:
- mongo-data:/data/db
healthcheck:
test: echo 'db.runCommand({serverStatus:1}).ok' | mongo admin --quiet | grep 1
interval: 5s
timeout: 5s
retries: 3
start_period: 10s