diff --git a/README.md b/README.md index 1d110ad..845da83 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ This repo is for containers running on Charles (@ReachableCEO) laptop | (the only editor) vscode-server | 2006 | | (resume hacking) reactive-resume | 2007 | | (habit tracking) atomichabits| 2008 | +| (workout tracking) wael | 2009 | ## Secrets diff --git a/metrics/README.md b/metrics/README.md new file mode 100644 index 0000000..181449d --- /dev/null +++ b/metrics/README.md @@ -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. diff --git a/metrics/docker-compose.yml b/metrics/docker-compose.yml index ae68004..1e503e4 100644 --- a/metrics/docker-compose.yml +++ b/metrics/docker-compose.yml @@ -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 \ No newline at end of file diff --git a/metrics/metrics.sh b/metrics/metrics.sh index 4a6b35f..1855e03 100644 --- a/metrics/metrics.sh +++ b/metrics/metrics.sh @@ -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 \ No newline at end of file + ghcr.io/lowlighter/metrics:$VERSION npm start diff --git a/wael/docker-compose.yml b/wael/docker-compose.yml new file mode 100644 index 0000000..584934c --- /dev/null +++ b/wael/docker-compose.yml @@ -0,0 +1,12 @@ +services: + wael: + container_name: reachableceo-wael + image: reachableceo-wael:latest # increment this number (or set the env value in your .env) to force portainer to rebuild the image https://github.com/portainer/portainer/issues/6288 + restart: always + ports: + - "2009:3009" # Must be supplied by shell or in .env file + env_file: + - ./wael.env + volumes: + - "${HOST_DATA_PATH:-/default/path}:/workspace/prisma/data" # Must be supplied by shell or in .env file + user: node diff --git a/wael/wael.env b/wael/wael.env new file mode 100644 index 0000000..f0802ee --- /dev/null +++ b/wael/wael.env @@ -0,0 +1,5 @@ +TZ=America/Chicago +DOCKER_IMAGE_TAG=v2 +HOST_DATA_PATH="D:/tsys/docker/volumes/reachableceo-wael-data/" +EXPOSE_PRISMA_STUDIO=false +PRISMA_STUDIO_PORT=5533 \ No newline at end of file diff --git a/wakaapi/wakaapi.sh b/wakaapi/wakaapi.sh deleted file mode 100644 index 227c55b..0000000 --- a/wakaapi/wakaapi.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -docker run -d \ - -p 2001:3000 \ - -e "WAKAPI_PASSWORD_SALT=1234" \ - -v wakapi-data-tsys:/data \ - --restart=always \ - --name wakaapi-tsys \ - ghcr.io/muety/wakapi:latest