You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/docker-compose.adoc
+20-3
Original file line number
Diff line number
Diff line change
@@ -38,9 +38,6 @@ When this module is included as a dependency Spring Boot will do the following:
38
38
If the Docker Compose services are already running when starting the application, Spring Boot will only create the service connection beans for each supported container.
39
39
It will not call `docker compose up` again and it will not call `docker compose stop` when the application is shutdown.
40
40
41
-
NOTE: By default, Spring Boot's Docker Compose support is disabled when running tests.
42
-
To enable it, set configprop:spring.docker.compose.skip.in-tests[] to `false`.
43
-
44
41
45
42
46
43
[[features.docker-compose.prerequisites]]
@@ -256,3 +253,23 @@ If you want to activate a specific Docker Compose profile you can use the config
256
253
profiles:
257
254
active: "myprofile"
258
255
----
256
+
257
+
258
+
259
+
[[features.docker-compose.tests]]
260
+
=== Using Docker Compose in Tests
261
+
262
+
By default, Spring Boot's Docker Compose support is disabled when running tests.
263
+
264
+
To enable Docker Compose support in tests, set configprop:spring.docker.compose.skip.in-tests[] to `false`.
265
+
266
+
When using Gradle, you also need to change the configuration of the `spring-boot-docker-compose` dependency from `developmentOnly` to `testAndDevelopmentOnly`:
0 commit comments