timeboxing and moving on. it's 13:00. this is great progress.
This commit is contained in:
5
metrics/README.md
Normal file
5
metrics/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
https://github.com/lowlighter/metrics/blob/master/.github/readme/partials/documentation/setup/web.md
|
||||
|
||||
Not currently working. Was working before converting to docker-compose.
|
||||
|
||||
Not a high priority as it can be run on demand to generate output for use when needed.
|
@@ -5,7 +5,7 @@ services:
|
||||
entrypoint: ""
|
||||
command: ["npm", "start"]
|
||||
ports:
|
||||
- "127.0.0.1:2002:3000"
|
||||
- 2002:3000
|
||||
volumes:
|
||||
- /path/to/settings.json:/metrics/settings.json
|
||||
- ./settings.json:/metrics/settings.json
|
||||
restart: no
|
@@ -8,17 +8,16 @@
|
||||
# Select an existing docker image tag
|
||||
VERSION=latest
|
||||
# Path to configured `settings.json`
|
||||
SETTINGS=/path/to/settings.json
|
||||
SETTINGS=./settings.json
|
||||
# Port used internally (use the same one than in `settings.json`)
|
||||
SERVICE_PORT=3000
|
||||
# Port to publish
|
||||
PUBLISHED_PORT=2002
|
||||
|
||||
docker run \
|
||||
-d \
|
||||
--rm \
|
||||
--name metrics \
|
||||
--name reachableceo-metrics \
|
||||
--entrypoint="" \
|
||||
-p=127.0.0.1:$PUBLISHED_PORT:$SERVICE_PORT \
|
||||
--volume=$SETTINGS:/metrics/settings.json \
|
||||
ghcr.io/lowlighter/metrics:$VERSION npm start
|
||||
ghcr.io/lowlighter/metrics:$VERSION npm start
|
||||
|
Reference in New Issue
Block a user