Overriding Spring Configurations within a Docker Compose File

In the docker-compose.yml you can override any Spring configuration you want. The following snippet shows the docker-compose file of our user acceptance instance with the spring profile set to uat:

planets-server:
  environment:
    - SPRING_PROFILES_ACTIVE=uat