From 35bb50ddbefd6eb3bab303d6a6ad5aeaf4f8e031 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 6 Apr 2023 12:37:10 -0700 Subject: [PATCH] Rename DockerData to AppData --- jafner-net/README.md | 10 ++++++++++ jafner-net/config/autopirate/.env | 2 +- jafner-net/config/jdownloader2/.env | 2 +- jafner-net/config/keycloak/docker-compose.yml | 4 ++++ jafner-net/config/paperless/.env | 2 +- jafner-net/config/peertube/.env | 2 +- jafner-net/config/send/.env | 2 +- 7 files changed, 19 insertions(+), 5 deletions(-) diff --git a/jafner-net/README.md b/jafner-net/README.md index 47dcc45..e39fac7 100644 --- a/jafner-net/README.md +++ b/jafner-net/README.md @@ -11,6 +11,16 @@ For a living portal listing all user-facing services, go to https://home.jafner. This repository is automatically pushed to the host when a change is made to a file in this subdirectory. +## Startup Procedure +1. Make sure all configured network shares are mounted. `sudo mount -a` +2. Start infrastructure stacks. + 1. `cd ~/homelab/jafner-net/config/traefik && docker-compose up -d` + 2. `cd ~/homelab/jafner-net/config/keycloak && docker-compose up -d` + 3. `cd ~/homelab/jafner-net/config/ddns && docker-compose up -d` + 4. `cd ~/homelab/jafner-net/config/monitoring && docker-compose up -d` +3. Check running containers. `docker ps` +4. Start application stacks. `for service in /home/joey/homelab/jafner-net/config/*; do echo "===== STARTING $service =====" && cd $service && docker-compose up -d; done` + ## Sharing Files For files smaller than 2 GB, use [XBackBone](https://xbackbone.jafner.net). For files greater than 2 GB, use one of the following: diff --git a/jafner-net/config/autopirate/.env b/jafner-net/config/autopirate/.env index 3da0a92..4d02c1a 100644 --- a/jafner-net/config/autopirate/.env +++ b/jafner-net/config/autopirate/.env @@ -1,4 +1,4 @@ -DOCKER_DATA=/mnt/nas/DockerData/autopirate +DOCKER_DATA=/mnt/nas/AppData/autopirate DOCKER_DATA_LOCAL=/home/joey/data/autopirate MEDIA_DIR=/mnt/nas/media NZB_DIR=/mnt/md0/torrenting/NZB diff --git a/jafner-net/config/jdownloader2/.env b/jafner-net/config/jdownloader2/.env index c2316b8..563e5aa 100644 --- a/jafner-net/config/jdownloader2/.env +++ b/jafner-net/config/jdownloader2/.env @@ -1,2 +1,2 @@ -DOCKER_DATA=/mnt/nas/DockerData/jdownloader2 +DOCKER_DATA=/mnt/nas/AppData/jdownloader2 DOWNLOAD_DIR=/mnt/nas/torrenting/jdownloader2 \ No newline at end of file diff --git a/jafner-net/config/keycloak/docker-compose.yml b/jafner-net/config/keycloak/docker-compose.yml index 6674231..2038fb6 100644 --- a/jafner-net/config/keycloak/docker-compose.yml +++ b/jafner-net/config/keycloak/docker-compose.yml @@ -45,6 +45,8 @@ services: aliases: - forwardauth restart: "no" + depends_on: + - keycloak env_file: - forwardauth.env - forwardauth_secrets.env @@ -70,6 +72,8 @@ services: aliases: - forwardauth-privileged restart: "no" + depends_on: + - keycloak env_file: - forwardauth-privileged.env - forwardauth-privileged_secrets.env diff --git a/jafner-net/config/paperless/.env b/jafner-net/config/paperless/.env index 116dfcf..de98160 100644 --- a/jafner-net/config/paperless/.env +++ b/jafner-net/config/paperless/.env @@ -1 +1 @@ -DOCKER_DATA=/mnt/nas/DockerData/paperless \ No newline at end of file +DOCKER_DATA=/mnt/nas/AppData/paperless \ No newline at end of file diff --git a/jafner-net/config/peertube/.env b/jafner-net/config/peertube/.env index 0c9c36c..4b7f9f2 100644 --- a/jafner-net/config/peertube/.env +++ b/jafner-net/config/peertube/.env @@ -1,5 +1,5 @@ # Docker volume location -PEERTUBE_DATA_VOLUME=/mnt/nas/DockerData/peertube/ +PEERTUBE_DATA_VOLUME=/mnt/nas/AppData/peertube/ PEERTUBE_CONFIG_VOLUME=/mnt/md0/peertube/peertube/ POSTGRES_CONFIG_VOLUME=/mnt/md0/peertube/db/ REDIS_CONFIG_VOLUME=/mnt/md0/peertube/redis/ diff --git a/jafner-net/config/send/.env b/jafner-net/config/send/.env index 33aa4b8..d7fffbd 100644 --- a/jafner-net/config/send/.env +++ b/jafner-net/config/send/.env @@ -1 +1 @@ -DOCKER_DATA=/mnt/nas/DockerData/send \ No newline at end of file +DOCKER_DATA=/mnt/nas/AppData/send \ No newline at end of file