Skip to content

Commit

Permalink
Add docker configuration for env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
n1t0 committed Jul 31, 2019
1 parent ed6c59c commit 6b4acd7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ FROM node:latest

ENV UID=991 GID=991

ENV MONGOKU_DEFAULT_HOST="localhost:27017"
ENV MONGOKU_SERVER_PORT=3100
ENV MONGOKU_DATABASE_FILE="/tmp/mongoku.db"
ENV MONGOKU_COUNT_TIMEOUT=5000

RUN mkdir -p /app
WORKDIR /app

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ mongoku start --forever

```
docker run -d --name mongoku -p 3100:3100 huggingface/mongoku
# Run with customized default hosts
docker run -d --name mongoku -p 3100:3100 --env MONGOKU_DEFAULT_HOST="mongodb://user:[email protected]:8888" huggingface/mongoku
```

#### Build your own image
Expand Down

0 comments on commit 6b4acd7

Please sign in to comment.