-
Notifications
You must be signed in to change notification settings - Fork 3
Running Docker
Kaio edited this page Nov 7, 2017
·
3 revisions
- Docker (tested on v17.06.0-ce)
-
Pull our image from DockerHub
- Stable version:
docker pull groovylabs/lyre
- Development version:
docker pull groovylabs/lyre:nightly
- Stable version:
-
You also can build the image locally
git clone https://github.com/groovylabs/lyre.git
cd lyre
./mvnw install
docker build -t groovylabs/lyre .
If you want to change the default configuration, just create a new configuration inside a shared folder with the suffix .properties and use this command:
docker run -p <your-port>:8080 -v <your-path>:/lyre/shared -e 'SPRING_CONFIG_LOCATION=/lyre/shared/<custom-file>.properties' -it groovylabs/lyre
Remember, don't change the application port neither spring active profile. We use a particular Docker configuration/profile.
You can input your custom configuration with environment variable too, like this command:
docker run -p <your-port>:8080 -v <your-path>:/lyre/shared \
-e 'LYRE_ENABLE_LIVE_RELOAD=<boolean>' \
-e 'LYRE_CONTEXT_PATH=<string>' \
-e 'LYRE_APPLICATION_PATH=<string>' \
-e 'LYRE_FILE_FORMAT=<string>' \
-e 'LYRE_DEBUG=<boolean>' \
groovylabs/lyre