From 4d909b6f12646bb20715fdb5dacce00176339061 Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Fri, 10 Jul 2026 17:24:05 -0400 Subject: [PATCH] changing tilde to explicit HOME environment variable for environment file paths --- dependent/compose.yml | 82 +++++++++++++++++++++++++++++-------------- 1 file changed, 56 insertions(+), 26 deletions(-) diff --git a/dependent/compose.yml b/dependent/compose.yml index 891c79d..ff6399f 100644 --- a/dependent/compose.yml +++ b/dependent/compose.yml @@ -12,6 +12,7 @@ volumes: tailscale-lib: redis-data: mysql-lib: + opengist-data: secrets: headscale.key: file: ~/.podsecrets/headscale.key @@ -53,7 +54,7 @@ services: - net.ipv6.conf.all.forwarding=1 - net.ipv6.conf.all.src_valid_mark=1 env_file: - - ~/.all.env + - ${HOME}/.all.env labels: glance.name: Wireguard glance.id: wireguard @@ -81,8 +82,8 @@ services: - hs hostname: tailnet env_file: - - ~/.all.env - - ~/.tailscale.env + - ${HOME}/.all.env + # - ~/.tailscale.env environment: TS_AUTHKEY_FILE: /run/secrets/headscale.key TS_SERVE_CONFIG: /config/conf.json @@ -126,7 +127,7 @@ services: depends_on: - wgclient env_file: - - ~/.all.env + - ${HOME}/.all.env labels: glance.name: Caddy glance.id: caddy @@ -151,8 +152,8 @@ services: - revproxy0 - wgclient env_file: - - ~/.all.env - - ~/.certbot.env + - ${HOME}/.all.env + - ${HOME}/.certbot.env environment: EMAIL: ${CERTBOT_EMAIL:?Provide an email for certificate process} DOMAINS: ${CERTBOT_CHALLENGED_DOMAINS:-"${SERVER_FQDN},*.${SERVER_FQDN}"} @@ -178,7 +179,7 @@ services: depends_on: - wgclient env_file: - - ~/.all.env + - ${HOME}/.all.env entrypoint: ["redis-server", "--save 60 1", "--loglevel warning", "/etc/redis/redis.conf"] labels: glance.name: Redis @@ -205,8 +206,8 @@ services: depends_on: - wgclient env_file: - - ~/.all.env - - ~/.mysql.env + - ${HOME}/.all.env + - ${HOME}/.mysql.env environment: MYSQL_ROOT_PASSWORD_FILE: /run/secrets/root-mysql.pass MYSQL_USER: ${MYSQL_DB_USER:-admin} @@ -242,10 +243,10 @@ services: - revproxy0 - wgclient env_file: - - ~/.all.env - - ~/.email.env - - ~/.mysql.env - - ~/.nextcloud.env + - ${HOME}/.all.env + - ${HOME}/.email.env + - ${HOME}/.mysql.env + - ${HOME}/.nextcloud.env environment: REDIS_HOST: cache0 REDIS_HOST_PASSWORD_FILE: /run/secrets/redis.pass @@ -301,10 +302,10 @@ services: - revproxy0 - wgclient env_file: - - ~/.all.env - - ~/.email.env - - ~/.mysql.env - - ~/.gitea.env + - ${HOME}/.all.env + - ${HOME}/.email.env + - ${HOME}/.mysql.env + - ${HOME}/.gitea.env environment: GITEA_DEFAULT_RUN_USER: ${GITEA_MODE:-dev} GITEA_DEFAULT_APP_NAME: ${GITEA_NAME:?Enter a name or title for Gitea website} @@ -361,22 +362,29 @@ services: container_name: gist restart: unless-stopped volumes: + - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro - - ~/.config/opengist:/opengist:z + - opengist-data:/opengist:z expose: - 6157 - - 2222 + - ${OG_SSH_PORT:-2323} networks: - "container:wgclient" depends_on: - revproxy0 - wgclient env_file: - - ~/.all.env - - ~/.mysql.env + - ${HOME}/.all.env + - ${HOME}/.mysql.env environment: - OG_DB_PASSWD_FILE: /run/secrets/user-mysql.pass - OG_DB_URI: ${OG_DB_TYPE}://${MYSQL_DB_USER:-admin}:${OG_DB_PASSWD}@${MYSQL_DB_HOST:?Enter the container name, hostname or public FQDN of your DBMS}:3306/${OG_DB_NAME:-opengist} + OG_OPENGIST_HOME: /opengist + OG_LOG_OUTPUT: file + OG_GIT_DEFAULT_BRANCH: main + OG_HTTP_GIT_ENABLED: "true" + OG_EXTERNAL_URL: "${SERVER_FQDN_SCHEME}://${OG_SUBDOMAIN}.${SERVER_FQDN}" + OG_CUSTOM_NAME: ${OG_NAME:?Enter name for OpenGist website} + OG_CUSTOM_LOGO: ${OG_LOGO:-logo.svg} + OG_CUSTOM_FAVICON: ${OG_FAVICON:-logo.ico} secrets: - "user-mysql.pass" # - opengist.secret @@ -387,13 +395,14 @@ services: glance.url: "${SERVER_FQDN_SCHEME}://${OG_SUBDOMAIN}.${SERVER_FQDN}" glance.description: Pastebin server - glance: + dash: image: glanceapp/glance - container_name: glance + container_name: dash restart: unless-stopped expose: - 8080 volumes: + - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro # Optionally, also mount docker socket if you want to use the docker containers widget - /var/run/docker.sock:/var/run/docker.sock:ro @@ -416,12 +425,17 @@ services: # @TODO apply labels to each container that allows it to show up in Glance dashboard # @NOTE The following is a list of additional public-facing container services to add -# - https://opengist.io/, https://opengist.io/docs/installation/docker.html +# - http://www.proftpd.org/, https://hub.docker.com/r/instantlinux/proftpd +# - https://burp.grke.org/, https://hub.docker.com/r/pschiffe/burp-server +# - https://rsync.samba.org/, https://hub.docker.com/r/vimagick/rsyncd # - https://shlink.io/, https://shlink.io/documentation/install-docker-image/ # - https://www.funkwhale.audio/, https://docs.funkwhale.audio/administrator/installation/docker.html # - https://join-lemmy.org/, https://join-lemmy.org/docs/administration/install_docker.html +# - https://nodebb.org/, https://docs.nodebb.org/installing/cloud/docker/ # - https://joinbookwyrm.com/, https://docs.joinbookwyrm.com/install-prod.html +# - https://github.com/FuzzyGrim/Yamtrack # - https://misskey-hub.net/en/, https://misskey-hub.net/en/docs/for-admin/install/guides/docker/ +# - https://akkoma.social/, https://docs.akkoma.dev/stable/ # - https://hub.docker.com/r/instantlinux/proftpd # - https://prosody.im/, https://prosody.im/download/ # - https://element-hq.github.io/synapse/latest/setup/installation.html @@ -429,8 +443,16 @@ services: # - https://hub.docker.com/r/dnomd343/syncplay # - https://hub.docker.com/r/p3terx/aria2-pro # - https://github.com/SurgeDM/Surge#5-server-mode-with-docker-compose +# - https://www.bookstackapp.com/, https://www.bookstackapp.com/docs/admin/installation/#docker +# - https://moodle.org/ +# - https://asciinema.org/ +# - https://isso-comments.de/ +# - https://shibumi.dev/posts/how-to-setup-your-own-wkd-server/ +# - https://dario.griffo.io/posts/ultimate-guide-debian-repository-hosting/ +# - https://gitlab.com/fdroid/docker-executable-fdroidserver # @NOTE The following is a list of additional private container services to add +# - https://www.keycloak.org/, https://www.keycloak.org/server/containers # - https://tasktrove.io/, https://docs.tasktrove.io/installation#option-2-docker-compose # - https://github.com/dohsimpson/HabitTrove, https://github.com/dohsimpson/HabitTrove#docker-deployment # - https://grocy.info/, https://hub.docker.com/r/linuxserver/grocy @@ -439,7 +461,15 @@ services: # - https://sugoi.gitbook.io/lanraragi, https://sugoi.gitbook.io/lanraragi/installing-lanraragi/docker # - https://komga.org/, https://komga.org/docs/installation/docker # - https://github.com/janeczku/calibre-web, https://hub.docker.com/r/linuxserver/calibre-web +# - https://www.kavitareader.com/, https://wiki.kavitareader.com/installation/docker/ # - https://immich.app/, https://docs.immich.app/install/docker-compose # - https://papra.app/en/, https://docs.papra.app/self-hosting/using-docker-compose/ # - https://stashapp.cc/, https://docs.stashapp.cc/installation/docker/ +# - https://droposs.org/, https://droposs.org/docs/admin/quickstart/ # - https://jellyfin.org/, https://jellyfin.org/docs/general/installation/container +# - https://papra.app/en/, https://docs.papra.app/self-hosting/using-docker-compose/ +# - https://docs.paperless-ngx.com/, https://docs.paperless-ngx.com/setup/#docker +# - https://atomicserver.eu/, https://docs.atomicdata.dev/atomic-data-overview +# - https://github.com/sassanix/warracker +# - https://github.com/cmintey/wishlist +# - https://ghostfolio.com