Skip to content

Commit 54abc1d

Browse files
Address PR feedback: Remove H2 dependency and update README
Co-Authored-By: [email protected] <[email protected]>
1 parent 0c1d0e9 commit 54abc1d

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

doma-spring-boot-samples/doma-spring-boot-sample-docker-compose/README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff 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-
6358
Spring Boot automatically configures the application to connect to this database.
6459
6560
## Notes

doma-spring-boot-samples/doma-spring-boot-sample-docker-compose/pom.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@
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>

0 commit comments

Comments
 (0)