Skip to content

Commit

Permalink
Merge pull request #13 from gfa-cc-after/Docker-composed-file
Browse files Browse the repository at this point in the history
Docker composed file
  • Loading branch information
ramesz6 authored Jun 29, 2024
2 parents a3ddd41 + 8285891 commit 974612a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
spring.application.name=backend
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
spring.datasource.username=${USERNAME}
spring.datasource.password=${PASSWORD}
spring.datasource.url=jdbc:postgresql://localhost:5432/${DB_NAME:postgres}
spring.datasource.username=${USERNAME:postgres}
spring.datasource.password=${PASSWORD:example}
spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.show-sql=true
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:

postgres-db:
image: postgres:16
restart: always
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: example

0 comments on commit 974612a

Please sign in to comment.