Utilize spring.docker.compose.profiles.active property

This commit is contained in:
konstantin 2024-08-14 01:08:21 +03:00
parent d8fcd11e67
commit 86d5400266
2 changed files with 6 additions and 4 deletions

View file

@ -121,7 +121,6 @@
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-docker-compose</artifactId> <artifactId>spring-boot-docker-compose</artifactId>
<scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.testcontainers</groupId> <groupId>org.testcontainers</groupId>
@ -221,7 +220,7 @@
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<executions> <executions>
<execution> <execution>
<!-- Spring Boot Actuator displays build-related information <!-- Spring Boot Actuator displays build-related information
if a META-INF/build-info.properties file is present --> if a META-INF/build-info.properties file is present -->
<goals> <goals>
<goal>build-info</goal> <goal>build-info</goal>
@ -385,7 +384,7 @@
<build> <build>
<pluginManagement> <pluginManagement>
<plugins> <plugins>
<!-- This plugin's configuration is used to store Eclipse m2e settings <!-- This plugin's configuration is used to store Eclipse m2e settings
only. It has no influence on the Maven build itself. --> only. It has no influence on the Maven build itself. -->
<plugin> <plugin>
<groupId>org.eclipse.m2e</groupId> <groupId>org.eclipse.m2e</groupId>
@ -443,4 +442,4 @@
</profile> </profile>
</profiles> </profiles>
</project> </project>

View file

@ -16,6 +16,9 @@ spring.messages.basename=messages/messages
# Actuator # Actuator
management.endpoints.web.exposure.include=* management.endpoints.web.exposure.include=*
# Docker compose
spring.docker.compose.profiles.active=${spring.profiles.active}
# Logging # Logging
logging.level.org.springframework=INFO logging.level.org.springframework=INFO
# logging.level.org.springframework.web=DEBUG # logging.level.org.springframework.web=DEBUG