-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
27 lines (27 loc) · 930 Bytes
/
docker-compose.yaml
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
services:
webserver:
# use 'image' tag if it exists, or 'build' with this config and tag as such
image: hello-world-web:latest
build:
context: .
args:
# NOTE: NODE_BASEIMAGE must be set in the calling shell, not the `.env` file or the `environment` here.
# the recommended way is to use `direnv` so set those vars, see .envrc file.
- "BASEIMAGE=${NODE_BASEIMAGE?configure the docker baseimage for nodejs!}"
environment:
- "PORT=${PORT?configure the http port!}"
- "APP_TITLE=Hello docker-compose!"
- "BASE_PATH"
ports:
# format "host:container", container must match with environment.PORT
- ${PORT}:${PORT}
healthcheck:
# see Dockerfile for command, or overwrite here with `test:`
start_period: 1s
timeout: 3s
interval: 10s
retries: 3
env_file:
- .env
- TOOL_VERSIONS.env
- VERSION.env