Define application properties on build using Spring Boot and Maven

I have a spring boot application that uses a database. I have the local configuration in the file. I understand it is possible to change the values when I build the project with maven. I want to set the production values (db on AWS).

Here is

  • Docker application live upgrade
  • can a dockerised app execute script on the host?
  • convert a Windows solution into windows docker containers
  • Dockerize ruby script that takes directories as input/output
  • EC2 Container Service Networking
  • Docker: Unable to connect to container from host
  • spring.datasource.url=${db.url:jdbc:postgresql://localhost:5432/mydb}

    I would like to change the values when I run. This will create a docker image.

    mvn package docker:build

    Is it possible?

  • docker swarm init on windows container output nothing
  • `docker-machine scp` from local directory to machine
  • Set the docker daemon environment variables on Centos?
  • Why are Docker build commands running so slow in Elastic Beanstalk?
  • How to run Arangodb on Openshift?
  • Strategy for versioning Docker images linked to other contains via docker compose
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.