Skip to content

Commit

Permalink
updated DH to v2.0.8, switched to smalelr base image
Browse files Browse the repository at this point in the history
  • Loading branch information
demon-xxi committed Oct 12, 2015
2 parents 804067b + 4faeccd commit ad56b10
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,18 @@ To enable DeviceHive to communicate over Apache Kafka message bus to scale out a
## Run
In order to run DeviceHive from docker container, define environment variables as per your requirements and run:
```
docker run --name my-devicehive -p 80:80 astaff/devicehive
docker run --name my-devicehive -p 80:80 devicehive/devicehive
```
you can access your DeviceHive API http://devicehive-host-url/api.


## Logging
By default DeviceHive writes minimum logs for better performance. You can see default [logback.xml](https://github.com/devicehive/devicehive-java-server/blob/development/src/main/resources/logback.xml).
It is possible to override logging without rebuilding jar file or docker file. Given you have log config `config.xml` in the current folder as include parameters as follows:
```
docker run -p 80:80 -v ./config.xml:/opt/devicehive/config.xml -e _JAVA_OPTIONS="-Dlogging.config=file:/opt/devicehive/config.xml" devicehive/devicehive
```

## Linking

[postgres]: https://hub.docker.com/_/postgres/ "postgres"
Expand Down
File renamed without changes.

0 comments on commit ad56b10

Please sign in to comment.