File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed
doma-spring-boot-samples/doma-spring-boot-sample-docker-compose Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -48,18 +48,13 @@ services:
4848 postgres :
4949 image : ' postgres:latest'
5050 environment :
51- - ' POSTGRES_DB=${POSTGRES_DB} '
52- - ' POSTGRES_PASSWORD=${POSTGRES_PASSWORD} '
53- - ' POSTGRES_USER=${POSTGRES_USER} '
51+ - ' POSTGRES_DB=mydatabase '
52+ - ' POSTGRES_PASSWORD=secret '
53+ - ' POSTGRES_USER=myuser '
5454 ports :
5555 - ' 5432'
5656` ` `
5757
58- Before running the application, you should set the following environment variables:
59- - ` POSTGRES_DB`: The name of the PostgreSQL database (e.g., "domadb")
60- - `POSTGRES_USER` : The PostgreSQL username (e.g., "doma")
61- - `POSTGRES_PASSWORD` : The PostgreSQL password
62-
6358Spring Boot automatically configures the application to connect to this database.
6459
6560## Notes
Original file line number Diff line number Diff line change 4848 <artifactId >postgresql</artifactId >
4949 <scope >runtime</scope >
5050 </dependency >
51- <dependency >
52- <groupId >com.h2database</groupId >
53- <artifactId >h2</artifactId >
54- <scope >test</scope >
55- </dependency >
51+
5652 <dependency >
5753 <groupId >org.springframework.boot</groupId >
5854 <artifactId >spring-boot-starter-test</artifactId >
You can’t perform that action at this time.
0 commit comments