when run the service on your local JVM, set program argument as:
server config.develop.yaml
second, execute:
docker-compose up --build
then run com.example.sample.SampleApplication
class.
when run the application with Docker Compose, execute:
docker-compose -f docker-compose.test.yaml up --build
docker-compose -f docker-compose.test.yaml build
docker-compose -f docker-compose.test.yaml run rest bash
java -jar target/sample.jar db migrate config.test.yaml
For more information about migration, see Dropwizard Migrations.