From 22bc3286ff4b0eb07b7f63ceb0093e806eb3f34e Mon Sep 17 00:00:00 2001 From: ReachableCEO Date: Sat, 30 Nov 2024 08:44:56 -0600 Subject: [PATCH] building out the backend for DSR automation --- README.md | 23 ++++++++++++----------- easy-gate/easy-gate.json | 18 ++++++++++++++---- influxdb/docker-compose.yml | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 15 deletions(-) create mode 100644 influxdb/docker-compose.yml diff --git a/README.md b/README.md index 845da83..c9dd189 100644 --- a/README.md +++ b/README.md @@ -6,17 +6,18 @@ This repo is for containers running on Charles (@ReachableCEO) laptop ## Portma| -| application | port | -| -------------- | ---- | -| (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 | +| application | port | +| ------------------------------------------------- | ---- | +| (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 | ## Secrets diff --git a/easy-gate/easy-gate.json b/easy-gate/easy-gate.json index f1d8261..5a24555 100644 --- a/easy-gate/easy-gate.json +++ b/easy-gate/easy-gate.json @@ -21,17 +21,17 @@ ], "services": [ { - "name": "WAKAAPI", + "name": "WAKAAPI Dashboard", "category": "", "url": "http://tsys1:2001", }, { - "name": "Metrics", + "name": "Metrics Dashboard", "category": "", "url": "http://tsys1:2002", }, { - "name": "Workout Tracking", + "name": "wger-Workout Tracking", "category": "", "url": "http://tsys1:2003", }, @@ -49,7 +49,17 @@ "name": "Atomic Habits", "category": "", "url": "http://tsys1:2008" - } + }, + { + "name": "Cleanslate", + "category": "", + "url": "http://tsys1:2010" + }, + { + "name": "Influxdb", + "category": "", + "url": "http://tsys1:4000", + }, ], "notes": [ { diff --git a/influxdb/docker-compose.yml b/influxdb/docker-compose.yml new file mode 100644 index 0000000..dbf14fa --- /dev/null +++ b/influxdb/docker-compose.yml @@ -0,0 +1,35 @@ +# compose.yaml +services: + influxdb2: + image: influxdb:2 + container_name: reachableceo-influxdb + ports: + - 4000:8086 + environment: + DOCKER_INFLUXDB_INIT_MODE: setup + DOCKER_INFLUXDB_INIT_USERNAME_FILE: /run/secrets/influxdb2-admin-username + DOCKER_INFLUXDB_INIT_PASSWORD_FILE: /run/secrets/influxdb2-admin-password + DOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE: /run/secrets/influxdb2-admin-token + DOCKER_INFLUXDB_INIT_ORG: docs + DOCKER_INFLUXDB_INIT_BUCKET: home + secrets: + - influxdb2-admin-username + - influxdb2-admin-password + - influxdb2-admin-token + volumes: + - type: volume + source: influxdb2-data + target: /var/lib/influxdb2 + - type: volume + source: influxdb2-config + target: /etc/influxdb2 +secrets: + influxdb2-admin-username: + file: $HOME/.env/influxdb2/admin-username + influxdb2-admin-password: + file: $HOME/.env/influxdb2/admin-password + influxdb2-admin-token: + file: $HOME/.env/influxdb2/admin-token +volumes: + influxdb2-data: + influxdb2-config: \ No newline at end of file