MeshCentral/docker/readme.md

34 lines
1.6 KiB
Markdown
Raw Normal View History

2021-11-02 17:32:15 +03:00
2021-11-02 17:33:49 +03:00
# How to create a docker image for meshcentral
2021-11-02 17:37:06 +03:00
```
git clone https://github.com/Ylianst/MeshCentral.git
cd MeshCentral/docker
2021-11-02 17:33:49 +03:00
docker build -t meshcentral .
2021-11-02 17:37:06 +03:00
```
docker-compose.yml example:
```yaml
2021-12-13 00:06:56 +03:00
version: '3'
2021-11-02 17:37:06 +03:00
services:
meshcentral:
restart: always
container_name: meshcentral
2021-12-13 00:06:56 +03:00
image: einar/meshcentral
2021-11-02 17:37:06 +03:00
ports:
2021-12-13 00:06:56 +03:00
- 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
2021-11-02 17:37:06 +03:00
environment:
- HOSTNAME=my.domain.com #your hostname
- REVERSE_PROXY=false #set to your reverse proxy IP if you want to put meshcentral behind a reverse proxy
- REVERSE_PROXY_TLS_PORT=
- IFRAME=false #set to true if you wish to enable iframe support
- ALLOW_NEW_ACCOUNTS=true #set to false if you want disable self-service creation of new accounts besides the first (admin)
- 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
2021-12-13 00:06:56 +03:00
- ALLOWPLUGINS=false #set to true to allow plugins
- LOCALSESSIONRECORDING=false # set to true to allow session recording
- MINIFY=true #set to enable or disable minification of json, reduces traffic
2021-11-02 17:37:06 +03:00
volumes:
- ./meshcentral/data:/opt/meshcentral/meshcentral-data #config.json and other important files live here. A must for data persistence
- ./meshcentral/user_files:/opt/meshcentral/meshcentral-files #where file uploads for users live
```