This commit is contained in:
Ylian Saint-Hilaire 2022-12-10 12:02:41 -08:00
commit 7dd0772cc6
2 changed files with 14 additions and 10 deletions

View File

@ -93,6 +93,6 @@ EXPOSE 80 443 4433
VOLUME /opt/meshcentral/meshcentral-data VOLUME /opt/meshcentral/meshcentral-data
VOLUME /opt/meshcentral/meshcentral-files VOLUME /opt/meshcentral/meshcentral-files
VOLUME /opt/meshcentral/meshcentral-web VOLUME /opt/meshcentral/meshcentral-web
VOLUME /opt/meshcentral/meshcentral-backup VOLUME /opt/meshcentral/meshcentral-backups
CMD ["bash", "/opt/meshcentral/startup.sh"] CMD ["bash", "/opt/meshcentral/startup.sh"]

View File

@ -10,8 +10,10 @@
| - docker-compose.yml | - docker-compose.yml
``` ```
# Templates: # Templates
## .env:
## .env
```ini ```ini
NODE_ENV=production NODE_ENV=production
@ -42,7 +44,8 @@ LOCALSESSIONRECORDING=false
MINIFY=true MINIFY=true
``` ```
## docker-compose.yml: ## docker-compose.yml
```yaml ```yaml
version: '3' version: '3'
@ -63,12 +66,13 @@ services:
# where file uploads for users live # where file uploads for users live
- ./meshcentral/user_files:/opt/meshcentral/meshcentral-files - ./meshcentral/user_files:/opt/meshcentral/meshcentral-files
# location for the meshcentral-backups - this should be mounted to an external storage # location for the meshcentral-backups - this should be mounted to an external storage
- ./meshcentral/backup:/opt/meshcentral/meshcentral-backup - ./meshcentral/backup:/opt/meshcentral/meshcentral-backups
# location for site customization files # location for site customization files
- ./meshcentral/web:/opt/meshcentral/meshcentral-web - ./meshcentral/web:/opt/meshcentral/meshcentral-web
``` ```
## docker-compose.yml mongodb: ## docker-compose.yml mongodb
```yaml ```yaml
version: '3' version: '3'
@ -107,7 +111,7 @@ services:
# where file uploads for users live # where file uploads for users live
- ./meshcentral/user_files:/opt/meshcentral/meshcentral-files - ./meshcentral/user_files:/opt/meshcentral/meshcentral-files
# location for the meshcentral-backups - this should be mounted to an external storage # location for the meshcentral-backups - this should be mounted to an external storage
- ./meshcentral/backup:/opt/meshcentral/meshcentral-backup - ./meshcentral/backup:/opt/meshcentral/meshcentral-backups
# location for site customization files # location for site customization files
- ./meshcentral/web:/opt/meshcentral/meshcentral-web - ./meshcentral/web:/opt/meshcentral/meshcentral-web
networks: networks: