Skip to content

Commit 68a1ecf

Browse files
authored
Merge pull request #288 from WatWowMap/docker-update
docs: Update docker compose + documentation
2 parents 8a29cab + 300a2af commit 68a1ecf

File tree

2 files changed

+26
-22
lines changed

2 files changed

+26
-22
lines changed

docker-compose.example.yml

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
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:

docs/install/docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
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

0 commit comments

Comments
 (0)