| 1 | services: |
| 2 | meshcentral: |
| 3 | image: ghcr.io/ylianst/meshcentral:latest |
| 4 | environment: |
| 5 | - DYNAMIC_CONFIG=false # Show the option but disable it by default, for safety. |
| 6 | - HOSTNAME=myserver.domain.com # Set the hostname in the config.json |
| 7 | - PORT=443 # Set the port in the config.json |
| 8 | - REDIR_PORT=80 # Set the redirection port in the config.json |
| 9 | - ALLOW_NEW_ACCOUNTS=false # Disable creation of new accounts (except for the first user) in the config.json |
| 10 | - USE_MONGODB=true # Enable the Mongo connector in the config.json |
| 11 | - MONGO_URL=mongodb://username:password@mongodb:27017/meshcentral # Example MONGO_URL |
| 12 | volumes: |
| 13 | - meshcentral-data:/opt/meshcentral/meshcentral-data |
| 14 | - meshcentral-files:/opt/meshcentral/meshcentral-files |
| 15 | - meshcentral-web:/opt/meshcentral/meshcentral-web |
| 16 | - meshcentral-backups:/opt/meshcentral/meshcentral-backups |
| 17 | ports: |
| 18 | - 443:443 |
| 19 | - 80:80 |
| 20 | volumes: |
| 21 | meshcentral-data: |
| 22 | meshcentral-files: |
| 23 | meshcentral-web: |
| 24 | meshcentral-backups: |