diff --git a/Dockerfile b/Dockerfile index 6febbe8..e8aa545 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,5 +22,5 @@ RUN npm i --only=production RUN chown -R node:node /usr/src/app USER node -EXPOSE 3000 +EXPOSE 3100 CMD ["node", "bin/serve.js"] \ No newline at end of file diff --git a/README.md b/README.md index 672727b..f12b5de 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ The simplest way to run orkid-ui is using `npx`. npx orkid-ui ``` -Open in browser: http://localhost:3000 +Open in browser: http://localhost:3100 - This will start orkid-ui in "non-production mode" (without basic authentication). - It'll try to connect to redis-server on localhost. @@ -74,7 +74,7 @@ docker run \ --env "HTTP_USER=admin" \ --env "HTTP_PASSWORD=_your_secret_password_" \ --env "REDIS_HOST=_REDIS_HOST_OR_IP_TO_CONNECT_TO_" \ - --publish 1337:3000 \ + --publish 1337:3100 \ --rm \ orkidio/orkid-ui: ``` @@ -156,7 +156,7 @@ These env vars are available however you run orkid-ui. **HTTP_PORT** -> HTTP port to listen to. Default is 3000. +> HTTP port to listen to. Default is 3100. **HTTP_USER** diff --git a/bin/serve.js b/bin/serve.js index 028e49e..1c599f5 100755 --- a/bin/serve.js +++ b/bin/serve.js @@ -3,7 +3,7 @@ // Get env variables const nodeEnv = process.env.NODE_ENV; const host = process.env.HTTP_HOST || '0.0.0.0'; -const port = process.env.HTTP_PORT || 3000; +const port = process.env.HTTP_PORT || 3100; const user = process.env.HTTP_USER; const pass = process.env.HTTP_PASSWORD; const redisHost = process.env.REDIS_HOST; diff --git a/docker-compose.yml b/docker-compose.yml index 5b1e9f2..c8d6b15 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,13 +4,13 @@ # /~https://github.com/mugli/orkid-ui # -version: '3' +version: "3" services: orkid-ui: # Important! Replace with a proper version # Available tags/versions: https://hub.docker.com/r/orkidio/orkid-ui/tags - image: 'orkidio/orkid-ui:' + image: "orkidio/orkid-ui:" container_name: orkid-ui restart: unless-stopped environment: @@ -29,5 +29,4 @@ services: # what you are doing. - REDIS_HOST=_REDIS_HOST_OR_IP_TO_CONNECT_TO_ ports: - - '3000:3000' - + - "3100:3100"