Update Remote-Access_Containers/meshcentral/compose.yaml
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user