Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rwblair committed Jun 6, 2017
1 parent cb450a0 commit 7dcbebc
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions dockereve-master/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,23 @@ Built on:
* [Docker](https://www.docker.com/)

## Run
Example of commands to run locally to start:
```sh
$ docker-compose build
$ docker-compose up
$ curl -i -H "Content-Type: application/json" http://192.168.99.100:80/T1w
$ docker-compose up -d
$ curl -i -H "Content-Type: application/json" http://localhost/api/v1/T1w
```

Swagger API documentation available at `http://localhost/docs`.

## Environment variables in Docker
To properly run the file dockereve-master/.env needs to be created and populated with the following values:
To properly run the file dockereve-master/.env needs to be populated the following are the default values:
```
MONGODB_HOST=full url to mongodb host
MONGODB_PORT=port that mongo is running on
API_TOKEN=random string that is used for auth
API_URL=full url to swagger docs in the api
MONGODB_HOST=mongodb
MONGODB_PORT=27017
API_TOKEN=<secret_token>
API_URL=http://localhost/docs/api
```

If docker is running natively these values should work, otherwise API_URL may need to be updated from localhost accordingly.

0 comments on commit 7dcbebc

Please sign in to comment.