mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-07-16 12:21:51 -04:00
Minor Docker fixes and nice things (#7120)
This commit is contained in:
parent
0aaab322ad
commit
0b6d4b28be
@ -2,10 +2,11 @@ services:
|
|||||||
meshcentral:
|
meshcentral:
|
||||||
image: ghcr.io/ylianst/meshcentral:latest
|
image: ghcr.io/ylianst/meshcentral:latest
|
||||||
environment:
|
environment:
|
||||||
- HOSTNAME=myserver.domain.com
|
- DYNAMIC_CONFIG=false # Show the option but disable it by default, for safety.
|
||||||
- ALLOW_NEW_ACCOUNTS=false
|
- HOSTNAME=myserver.domain.com # Set the hostname in the config.json
|
||||||
- USE_MONGODB=true
|
- ALLOW_NEW_ACCOUNTS=false # Disable creation of new accounts (except for the first user) in the config.json
|
||||||
- MONGO_URL=mongodb://username:password@mongodb:27017/meshcentral
|
- USE_MONGODB=true # Enable the Mongo connector in the config.json
|
||||||
|
- MONGO_URL=mongodb://username:password@mongodb:27017/meshcentral # Example MONGO_URL
|
||||||
volumes:
|
volumes:
|
||||||
- meshcentral-data:/opt/meshcentral/meshcentral-data
|
- meshcentral-data:/opt/meshcentral/meshcentral-data
|
||||||
- meshcentral-files:/opt/meshcentral/meshcentral-files
|
- meshcentral-files:/opt/meshcentral/meshcentral-files
|
||||||
|
@ -22,7 +22,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${DYNAMIC_CONFIG,,} =~ ^(true|yes)$ ]]; then
|
if [[ ${DYNAMIC_CONFIG,,} =~ ^(true|yes)$ ]]; then
|
||||||
cat "$CONFIG_FILE"
|
|
||||||
echo "Using Dynamic Configuration values..."
|
echo "Using Dynamic Configuration values..."
|
||||||
|
|
||||||
# BEGIN DATABASE CONFIGURATION FIELDS
|
# BEGIN DATABASE CONFIGURATION FIELDS
|
||||||
@ -257,7 +256,7 @@ if [[ ${DYNAMIC_CONFIG,,} =~ ^(true|yes)$ ]]; then
|
|||||||
sed -i 's/"certUrl":/"_certUrl":/g' "$CONFIG_FILE"
|
sed -i 's/"certUrl":/"_certUrl":/g' "$CONFIG_FILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\n$(cat "$CONFIG_FILE")"
|
cat "$CONFIG_FILE"
|
||||||
else
|
else
|
||||||
echo "Leaving config as-is."
|
echo "Leaving config as-is."
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user