File tree Expand file tree Collapse file tree 2 files changed +26
-22
lines changed
Expand file tree Collapse file tree 2 files changed +26
-22
lines changed Original file line number Diff line number Diff line change 1- version : ' 3.2'
2-
3- services :
4- mapjs :
5- build : .
6- restart : unless-stopped
7- working_dir : /app
8- command :
9- - sh
10- - -c
11- - |
12- npm install
13- npm start
14- volumes :
15- - .:/app
16- # - static:/static
17- ports :
18- - " 8080:8080"
19-
20- # volumes:
21- # static:
1+ version : ' 3.2'
2+
3+ services :
4+ mapjs :
5+ image : node:12
6+ restart : unless-stopped
7+ working_dir : /app
8+ environment :
9+ HEALTHCHECK_SECRET : " some_super_secret_value"
10+ healthcheck :
11+ test : " curl -fH \" Healthcheck-Secret: $HEALTHCHECK_SECRET\" http://localhost:8080 || exit 1"
12+ command :
13+ - sh
14+ - -c
15+ - |
16+ npm run update
17+ npm start
18+ volumes :
19+ - .:/app
20+ # - static:/static
21+ ports :
22+ - " 8080:8080"
23+
24+ # volumes:
25+ # static:
Original file line number Diff line number Diff line change 1818 cp docker-compose.example.yml docker-compose.yml
1919 ` ` `
2020
21- 1. Fill out your docker-compose.yml file
21+ 1. Fill out your docker-compose.yml file. Change your ` HEALTHCHECK_SECRET ` variable.
2222
2323 ` ` ` sh
2424 vi docker-compose.yml
You can’t perform that action at this time.
0 commit comments