diff --git a/README.md b/README.md index c9dd189..1184222 100644 --- a/README.md +++ b/README.md @@ -7,17 +7,20 @@ This repo is for containers running on Charles (@ReachableCEO) laptop ## Portma| | application | port | -| ------------------------------------------------- | ---- | +|---------------------------------------------------|------| +| (habit tracking) atomichabits | 2008 | +| (dashboard to all my local hosted apps) easy-gate | 2005 | +| (resume hacking) reactive-resume | 2007 | +| (youtube archiving) tube-archivist | 2004 | +| (the only editor) vscode-server | 2006 | | (timetracking) wakaapi | 2001 | + + | (analytics) metrics | 2002 | | (workout tracking) wger | 2003 | -| (youtube archiving) tube-archivist | 2004 | -| (dashboard to all my local hosted apps) easy-gate | 2005 | -| (the only editor) vscode-server | 2006 | -| (resume hacking) reactive-resume | 2007 | -| (habit tracking) atomichabits | 2008 | | (workout tracking) wael | 2009 | | (food tracking) cleanslate | 2010 | +| (workout tracking) fitly | 2011 | ## Secrets diff --git a/cleanslate/.env b/cleanslate/.env new file mode 100644 index 0000000..51ace7b --- /dev/null +++ b/cleanslate/.env @@ -0,0 +1,9 @@ +AUTHENTICATION_SERVER_PORT=3001 +CLIENT_PORT=2010 +HASURA_GRAPHQL_ADMIN_SECRET=first-long-secret-value +HASURA_GRAPHQL_JWT_SECRET='{"type":"HS256","key":"11111-22222-33333-second-long-secret-value"}' +HASURA_PORT=8080 +JWT_SIGNING_SECRET=second-long-secret-value +NEXT_PUBLIC_HASURA_DOMAIN=tsys1 +POSTGRES_PASSWORD=1234 +POSTGRES_PORT=20101 \ No newline at end of file diff --git a/cleanslate/docker-compose.yml b/cleanslate/docker-compose.yml index adc0a7b..f67dd26 100644 --- a/cleanslate/docker-compose.yml +++ b/cleanslate/docker-compose.yml @@ -4,9 +4,10 @@ services: restart: always container_name: cleanslate-database ports: - - '35000:5432' + - '20101:5432' environment: - POSTGRES_PASSWORD: 1234 + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + volumes: - cleanslate-database:/var/lib/postgresql/data healthcheck: @@ -20,11 +21,11 @@ services: restart: always container_name: cleanslate-graphql-server ports: - - '35001:8080' + - '20102:8080' environment: HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET} HASURA_GRAPHQL_CORS_DOMAIN: https://${NEXT_PUBLIC_HASURA_DOMAIN} - HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@cleanslate-database:35000/postgres + HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@cleanslate-database:5432/postgres HASURA_GRAPHQL_DEV_MODE: false HASURA_GRAPHQL_ENABLE_CONSOLE: true HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log @@ -45,9 +46,9 @@ services: dockerfile: Dockerfile.server pull_policy: ${PULL_POLICY:-always} restart: always - container_name: authentication-server + container_name: cleanslate-authentication-server ports: - - '35002:3001' + - '20103:3001' environment: HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET} JWT_SIGNING_SECRET: ${JWT_SIGNING_SECRET} @@ -75,7 +76,7 @@ services: - NEXT_PUBLIC_VERSION=${NEXT_PUBLIC_VERSION} pull_policy: ${PULL_POLICY:-always} restart: always - container_name: client + container_name: cleanslate-client ports: - '2010:3000' depends_on: diff --git a/fitly/config/config.ini b/fitly/config/config.ini new file mode 100644 index 0000000..85a7dec --- /dev/null +++ b/fitly/config/config.ini @@ -0,0 +1,66 @@ +[logger] +level = DEBUG + +[cron] +hourly_pull = False + +[settings] +password = + +# Restart is required after connecting to spotify via settings page for stream to start working +[spotify] +client_id = +client_secret = +redirect_uri = +# Range of % complete song needs to be in when changed to be considered a 'Skip'. Used to train model for 'liked' songs +skip_min_threshold = .05 +skip_max_threshold = .80 +# Min seconds song has to be on player for it to be inserted into db (ignore quick skips) +min_secs_listened = 15 +# interval at which spotify 'currently_playing' will be polled, .5 = 2 requests per second +poll_interval_seconds = .5 + +[peloton] +username = +password = + +[stryd] +username = +password = +compare_against_age=1 +compare_against_gender=1 +compare_against_race_event=1 + +[strava] +activities_after_date = 2018-01-01T00:00:00Z +client_id = +client_secret = +redirect_uri = http://127.0.0.1:8050/settings?strava + +[oura] +redirect_uri = http://127.0.0.1:8050/settings?oura +client_id = +client_secret = +days_back = 7 +white = rgb(220, 220, 220) +teal = rgb(134, 201, 250) +light_blue = rgb(85, 139, 189) +dark_blue = rgb(43, 70, 119) +orange = rgb(234, 109, 95) + +[withings] +redirect_uri = http://127.0.0.1:8050/settings?withings +client_id = +client_secret = + +[nextcloud] +url = +username = +password = +fitbod_path = + +[timezone] +timezone = America/New_York + +[dashboard] +transition=2000 \ No newline at end of file diff --git a/fitly/config/fitness.db b/fitly/config/fitness.db new file mode 100644 index 0000000..baaafb5 Binary files /dev/null and b/fitly/config/fitness.db differ diff --git a/fitly/config/log.log b/fitly/config/log.log new file mode 100644 index 0000000..e69de29 diff --git a/fitly/docker-compose.yml b/fitly/docker-compose.yml new file mode 100644 index 0000000..a3653cb --- /dev/null +++ b/fitly/docker-compose.yml @@ -0,0 +1,16 @@ +version: '3' +services: + fitly: + image: ethanopp/fitly:latest + container_name: fitly + restart: always + ports: + - "3000:80" + environment: + - MODULE_NAME=src.fitly.app + - VARIABLE_NAME=server + - TZ=America/Chicago + - TIMEOUT=1200 + - DASH_DEBUG=true + volumes: + - ./config:/app/config \ No newline at end of file diff --git a/metrics/docker-compose.yml b/metrics/docker-compose.yml index 1e503e4..30d7421 100644 --- a/metrics/docker-compose.yml +++ b/metrics/docker-compose.yml @@ -1,11 +1,15 @@ services: - metrics: - image: ghcr.io/lowlighter/metrics:latest + reachableceo-metrics: + image: ghcr.io/lowlighter/metrics:${VERSION:-latest} container_name: reachableceo-metrics - entrypoint: "" + entrypoint: [""] command: ["npm", "start"] ports: - - 2002:3000 + - "127.0.0.1:2002:3000" volumes: - - ./settings.json:/metrics/settings.json - restart: no \ No newline at end of file + - "./settings.json:/metrics/settings.json" + environment: + - VERSION=${VERSION:-latest} + - SETTINGS=./settings.json + - SERVICE_PORT=${SERVICE_PORT:-3000} + - PUBLISHED_PORT=${PUBLISHED_PORT:-2002} diff --git a/wger/update.sh b/wger/update.sh index 08a9183..71b0dad 100644 --- a/wger/update.sh +++ b/wger/update.sh @@ -1,9 +1,7 @@ #!/bin/bash -#docker compose exec wger-web python3 manage.py sync-exercises +docker compose exec wger-web python3 manage.py sync-exercises docker compose exec wger-web python3 manage.py download-exercise-images docker compose exec wger-web python3 manage.py download-exercise-videos - docker compose exec wger-web wger load-online-fixtures -# afterwards: docker compose exec wger-web python3 manage.py sync-ingredients