mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-07-19 05:28:50 -04:00
Added default exposure of non-encrypted http port.
This commit is contained in:
parent
5223cbd619
commit
5d18a1ad71
@ -165,8 +165,8 @@ COPY --from=builder /opt/meshcentral/meshcentral /opt/meshcentral/meshcentral
|
|||||||
# install dependencies from package.json
|
# install dependencies from package.json
|
||||||
RUN cd meshcentral && npm install
|
RUN cd meshcentral && npm install
|
||||||
|
|
||||||
# Expose only 443 by default to reduce attack surface. (Only encrypted ports).
|
# Expose needed ports
|
||||||
EXPOSE 443
|
EXPOSE 80 443
|
||||||
|
|
||||||
|
|
||||||
# These volumes will be created by default even without any declaration, this allows default persistence in Docker/Podman.
|
# These volumes will be created by default even without any declaration, this allows default persistence in Docker/Podman.
|
||||||
|
21
docker/compose.yaml
Normal file
21
docker/compose.yaml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
services:
|
||||||
|
meshcentral:
|
||||||
|
image: ghcr.io/ylianst/meshcentral:latest
|
||||||
|
environment:
|
||||||
|
- HOSTNAME=myserver.domain.com
|
||||||
|
- ALLOW_NEW_ACCOUNTS=false
|
||||||
|
- USE_MONGODB=true
|
||||||
|
- MONGO_URL=mongodb://username:password@mongodb:27017/meshcentral
|
||||||
|
volumes:
|
||||||
|
- meshcentral-data:/opt/meshcentral/meshcentral-data
|
||||||
|
- meshcentral-files:/opt/meshcentral/meshcentral-files
|
||||||
|
- meshcentral-web:/opt/meshcentral/meshcentral-web
|
||||||
|
- meshcentral-backups:/opt/meshcentral/meshcentral-backups
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
|
volumes:
|
||||||
|
meshcentral-data:
|
||||||
|
meshcentral-files:
|
||||||
|
meshcentral-web:
|
||||||
|
meshcentral-backups:
|
Loading…
x
Reference in New Issue
Block a user