diff --git a/scripts/runDocker.sh b/scripts/runDocker.sh index e51fab1..d178e8c 100755 --- a/scripts/runDocker.sh +++ b/scripts/runDocker.sh @@ -26,11 +26,13 @@ elif [ "$1" == "start" ]; then elif [ "$1" == "run" ]; then # --entrypoint bash \ scripts/setup.sh + docker run -it \ - -p 8080:80 \ - --mount src="$(pwd)/stats",target=/server/stats,type=bind \ - --mount src="$(pwd)/data",target=/server/data,type=bind \ - --mount src="$(pwd)/publicDirs",target=/server/publicDirs,type=bind \ + --network host \ + --mount src="$(pwd)/stats",target="/server/stats",type=bind \ + --mount src="$(pwd)/data",target="/server/data",type=bind \ + --mount src="$(pwd)/publicDirs",target="/server/publicDirs",type=bind \ + --mount src="/etc/letsencrypt",target="/etc/letsencrypt",type=bind \ qminer/mrfrys-node-server elif [ "$1" == "bash" ]; then docker exec -it $(getContainerId) /bin/bash diff --git a/src/server.ts b/src/server.ts index 70491e2..79f3aef 100755 --- a/src/server.ts +++ b/src/server.ts @@ -24,8 +24,8 @@ console.log('Current working directory: ' + process.cwd()) const startHTTPS = true const isRoot = process.getuid && process.getuid() === 0 -const port = isRoot ? 80 : 8080 -const httpsport = isRoot ? 443 : 5001 +const port = 8080 +const httpsport = 5001 // import os from 'os' // os.setPriority(10)