From be0101d343da2486f5ae7cd535665987463e2418 Mon Sep 17 00:00:00 2001 From: herwig- <741471+herwig-@users.noreply.github.com> Date: Tue, 2 Aug 2022 14:21:06 +0200 Subject: [PATCH 1/2] modified docker-compose examples to use the official docker image --- docker/readme.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker/readme.md b/docker/readme.md index c79d538b..e746a4df 100644 --- a/docker/readme.md +++ b/docker/readme.md @@ -80,7 +80,8 @@ services: meshcentral: restart: always container_name: meshcentral - image: meshcentral + # use the official meshcentral container + image: ghcr.io/ylianst/meshcentral:latest ports: # 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 - 8086:443 @@ -121,7 +122,8 @@ services: meshcentral: restart: always container_name: meshcentral - image: meshcentral + # use the official meshcentral container + image: ghcr.io/ylianst/meshcentral:latest depends_on: - mongodb ports: From 22351762b42058f5e09cda86934362327bd9ca0d Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Tue, 2 Aug 2022 13:39:44 +0100 Subject: [PATCH 2/2] add docker build docs --- docker/BUILD.md | 29 +++++++++++++++++++++++++++++ docker/readme.md | 36 +++--------------------------------- 2 files changed, 32 insertions(+), 33 deletions(-) create mode 100644 docker/BUILD.md diff --git a/docker/BUILD.md b/docker/BUILD.md new file mode 100644 index 00000000..1b100795 --- /dev/null +++ b/docker/BUILD.md @@ -0,0 +1,29 @@ +# How to create a docker image for meshcentral + +``` +> git clone https://github.com/Ylianst/MeshCentral.git +> cd MeshCentral + +> docker build -f docker/Dockerfile --force-rm -t meshcentral . + +# alternative, if you want to include the mongodb-tools (mongodump, ...), you can add the 'INCLUDE_MONGODBTOOLS=yes' build argument +> docker build -f docker/Dockerfile --force-rm --build-arg INCLUDE_MONGODBTOOLS=yes -t meshcentral . + +# (optional) cleanup after docker build: +> cd .. +> rm -rf MeshCentral/ +``` + +> | Argument | Description | +> | :--- | :--- | +> | -f docker/Dockerfile | Path/Name of the Dockerfile | +> | --force-rm | Always remove intermediate containers | +> | -t meshcentral | Name and optionally a tag in the 'name:tag' format | + +### Optional build arguments +> | Argument | Description | +> | :--- | :--- | +> | INCLUDE_MONGODBTOOLS=yes | Includes mongodb-tools (mongodump, ...) in the image | +> | DISABLE_MINIFY=yes | Disables the minification of files | +> | DISABLE_TRANSLATE=yes | Disables the translation of files | + diff --git a/docker/readme.md b/docker/readme.md index c79d538b..e5010af3 100644 --- a/docker/readme.md +++ b/docker/readme.md @@ -1,33 +1,3 @@ - -# How to create a docker image for meshcentral - -``` -> git clone https://github.com/Ylianst/MeshCentral.git -> cd MeshCentral - -> docker build -f docker/Dockerfile --force-rm -t meshcentral . - -# alternative, if you want to include the mongodb-tools (mongodump, ...), you can add the 'INCLUDE_MONGODBTOOLS=yes' build argument -> docker build -f docker/Dockerfile --force-rm --build-arg INCLUDE_MONGODBTOOLS=yes -t meshcentral . - -# (optional) cleanup after docker build: -> cd .. -> rm -rf MeshCentral/ -``` - -> | Argument | Description | -> | :--- | :--- | -> | -f docker/Dockerfile | Path/Name of the Dockerfile | -> | --force-rm | Always remove intermediate containers | -> | -t meshcentral | Name and optionally a tag in the 'name:tag' format | - -### Optional build arguments -> | Argument | Description | -> | :--- | :--- | -> | INCLUDE_MONGODBTOOLS=yes | Includes mongodb-tools (mongodump, ...) in the image | -> | DISABLE_MINIFY=yes | Disables the minification of files | -> | DISABLE_TRANSLATE=yes | Disables the translation of files | - # Create folder-structure and files ``` @@ -62,7 +32,7 @@ REVERSE_PROXY_TLS_PORT= IFRAME=false # set to false if you want disable self-service creation of new accounts besides the first (admin) ALLOW_NEW_ACCOUNTS=true -# set to true to enable WebRTC - per documentation it is not officially released with meshcentral, but is solid enough to work with. Use with caution +# set to true to enable WebRTC - per documentation it is not officially released with meshcentral and currently experimental. Use with caution WEBRTC=false # set to true to allow plugins ALLOWPLUGINS=false @@ -80,7 +50,7 @@ services: meshcentral: restart: always container_name: meshcentral - image: meshcentral + image: ghcr.io/ylianst/meshcentral:latest ports: # 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 - 8086:443 @@ -121,7 +91,7 @@ services: meshcentral: restart: always container_name: meshcentral - image: meshcentral + image: ghcr.io/ylianst/meshcentral:latest depends_on: - mongodb ports: