Configuration
Configuration via application.conf
Create a file application.conf
and attach it to the container via docker-compose file:
services:
api:
image: http4s-tagless-example:latest
...
volume:
- ./application.conf:/opt/docker/conf/application.conf
Then append the file with the necessary settings:
application {
persistence {
postgres {
uri = "the-new-uri"
}
}
}
Configuration via environment variables
Provide a necessary variable via docker-compose file:
services:
api:
image: http4s-tagless-example:latest
...
environment:
- POSTGRESQL_URI=jdbc:postgresql://postgres:5432/postgres