From cfd00b0e7de7c6ae793dfab63a138219d5471792 Mon Sep 17 00:00:00 2001 From: Gabe Date: Thu, 6 Aug 2026 15:59:37 +0000 Subject: [PATCH] Update Remote-Access_Containers/meshcentral/compose.yaml --- .../meshcentral/compose.yaml | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Remote-Access_Containers/meshcentral/compose.yaml b/Remote-Access_Containers/meshcentral/compose.yaml index 4b483f8..87c9468 100644 --- a/Remote-Access_Containers/meshcentral/compose.yaml +++ b/Remote-Access_Containers/meshcentral/compose.yaml @@ -1,8 +1,31 @@ services: + meshcentral-config: + image: alpine/git:latest + container_name: meshcentral-config + restart: "no" + env_file: + - .env + volumes: + - /srv/docker/meshcentral/data:/data + entrypoint: ["/bin/sh", "-c"] + command: + - | + apk add --no-cache gettext jq > /dev/null + rm -rf /tmp/repo + git clone --depth 1 https://oauth2:${GITEA_TOKEN}@gitea.${DOMAIN_NAME}/you/meshcentral-config.git /tmp/repo + envsubst < /tmp/repo/config.json.template > /tmp/config.rendered.json + jq empty /tmp/config.rendered.json + cp /tmp/config.rendered.json /data/config.json + + + meshcentral: restart: unless-stopped container_name: meshcentral image: typhonragewind/meshcentral:latest + depends_on: + meshcentral-config: + condition: service_completed_successfully #ports: # - 8090:443 #MeshCentral will moan and try everything not to use port 80, but you can also use it if you so desire, just change the config.json according to your needs environment: @@ -18,7 +41,6 @@ services: - BACKUP_KEEP_DAYS=10 #number of days of backups the function keeps volumes: - /srv/docker/meshcentral/data:/opt/meshcentral/meshcentral-data #config.json and other important files live here - #- ./config.json:/opt/meshcentral/meshcentral-data/config.json #overlays the config on top of the data volume above - /srv/docker/meshcentral/user_files:/opt/meshcentral/meshcentral-files #where file uploads for users live - /srv/docker/meshcentral/backups:/opt/meshcentral/meshcentral-backups #encrypted backups land here networks: