Skip to content

Commit

Permalink
Breaking: change default port
Browse files Browse the repository at this point in the history
  • Loading branch information
mugli committed Oct 9, 2019
1 parent 0672d02 commit fee8960
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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:<version>
```
Expand Down Expand Up @@ -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**

Expand Down
2 changes: 1 addition & 1 deletion bin/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 3 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
# /~https://github.com/mugli/orkid-ui
#

version: '3'
version: "3"

services:
orkid-ui:
# Important! Replace <version> with a proper version
# Available tags/versions: https://hub.docker.com/r/orkidio/orkid-ui/tags
image: 'orkidio/orkid-ui:<version>'
image: "orkidio/orkid-ui:<version>"
container_name: orkid-ui
restart: unless-stopped
environment:
Expand All @@ -29,5 +29,4 @@ services:
# what you are doing.
- REDIS_HOST=_REDIS_HOST_OR_IP_TO_CONNECT_TO_
ports:
- '3000:3000'

- "3100:3100"

0 comments on commit fee8960

Please sign in to comment.