зеркало из
				https://github.com/iharh/notes.git
				synced 2025-10-31 13:46:08 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			54 строки
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			54 строки
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| https://docs.spring.io/spring-boot/reference/features/dev-services.html
 | ||
|     dependencies {
 | ||
|       developmentOnly("org.springframework.boot:spring-boot-docker-compose")
 | ||
|       // testAndDevelopmentOnly("org.springframework.boot:spring-boot-docker-compose")
 | ||
|     }
 | ||
|     // https://docs.spring.io/spring-boot/gradle-plugin/packaging.html#packaging-executable.configuring.including-development-only-dependencies
 | ||
|     tasks.named<BootWar>("bootWar") {
 | ||
|       classpath(configurations["developmentOnly"])
 | ||
|     }
 | ||
| https://docs.spring.io/spring-boot/reference/features/dev-services.html#features.dev-services.docker-compose.service-connections
 | ||
|     // the connection details take precedence over any connection-related configuration properties
 | ||
|     https://docs.spring.io/spring-boot/api/java/org/springframework/boot/autoconfigure/service/connection/ConnectionDetails.html
 | ||
|     https://docs.spring.io/spring-boot/api/java/org/springframework/boot/autoconfigure/jdbc/JdbcConnectionDetails.html
 | ||
| 
 | ||
| https://docs.spring.io/spring-boot/reference/features/dev-services.html#features.dev-services.testcontainers
 | ||
| https://docs.spring.io/spring-boot/reference/testing/testcontainers.html
 | ||
|     @ServiceConnection
 | ||
|         https://docs.spring.io/spring-boot/reference/testing/testcontainers.html#testing.testcontainers.service-connections
 | ||
|         https://docs.spring.io/spring-boot/api/java/org/springframework/boot/testcontainers/service/connection/ServiceConnection.html
 | ||
|             Annotation used to indicate that a field or method is a ContainerConnectionSource which provides a service that can be connected to.
 | ||
|     @DynamicPropertySource
 | ||
|         https://docs.spring.io/spring-boot/reference/testing/testcontainers.html#testing.testcontainers.dynamic-properties
 | ||
| 
 | ||
|     Using a @ServiceConnection is recommended whenever possible, 
 | ||
|     however, dynamic properties can be a useful fallback for technologies that don’t yet have @ServiceConnection support
 | ||
| 
 | ||
| 2024
 | ||
| https://alexkosarev.name/2023/06/05/docker-compose-and-testcontainers-in-spring-boot-3-1/
 | ||
| https://www.baeldung.com/docker-compose-support-spring-boot
 | ||
| Amplicode - Spring Boot Applications Conterization of 3:49
 | ||
|     https://www.youtube.com/watch?v=f_eyfLVgoq8
 | ||
|     https://habr.com/ru/companies/haulmont/articles/848696/
 | ||
|     !!!
 | ||
| 2023
 | ||
| https://spring.io/blog/2023/06/21/docker-compose-support-in-spring-boot-3-1
 | ||
| 
 | ||
| https://github.com/spring-projects/spring-boot/tree/main/spring-boot-project/spring-boot-docker-compose
 | ||
| 
 | ||
| 
 | ||
| dependencies {
 | ||
|     implementation (
 | ||
|       ...
 | ||
|       'org.springframework.boot:spring-boot-docker-compose'
 | ||
|     )
 | ||
| }
 | ||
| 
 | ||
| multiple compose files (from 3.4)
 | ||
| spring:
 | ||
|   docker:
 | ||
|     compose:
 | ||
|       file:
 | ||
|         - "compose-postgres.yml"
 | ||
|         - "compose-redis.yml"
 | 
