Update readme.md
Einar Stenberg committed
Nov 2, 2021 at 15:37 UTC
6e5e77f547b91df6dee375c90d7c3bbd653022a0
1 file changed
+26
-1
docker/readme.md
+26
-1
@@ -1,5 +1,30 @@
1
2
# How to create a docker image for meshcentral
3
4
-
4
+```
5
+git clone https://github.com/Ylianst/MeshCentral.git
6
+cd MeshCentral/docker
7
docker build -t meshcentral .
8
+```
9
+
10
+docker-compose.yml example:
11
+```yaml
12
+version: '2'
13
+services:
14
+ meshcentral:
15
+ restart: always
16
+ container_name: meshcentral
17
+ image: meshcentral
18
+ ports:
19
+ - 8086: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
20
+ environment:
21
+ - HOSTNAME=my.domain.com #your hostname
22
+ - REVERSE_PROXY=false #set to your reverse proxy IP if you want to put meshcentral behind a reverse proxy
23
+ - REVERSE_PROXY_TLS_PORT=
24
+ - IFRAME=false #set to true if you wish to enable iframe support
25
+ - ALLOW_NEW_ACCOUNTS=true #set to false if you want disable self-service creation of new accounts besides the first (admin)
26
+ - WEBRTC=false #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
27
+ volumes:
28
+ - ./meshcentral/data:/opt/meshcentral/meshcentral-data #config.json and other important files live here. A must for data persistence
29
+ - ./meshcentral/user_files:/opt/meshcentral/meshcentral-files #where file uploads for users live
30
+```