diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties index 8fd5e22a..1279d674 100644 --- a/backend/src/main/resources/application.properties +++ b/backend/src/main/resources/application.properties @@ -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 diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 00000000..46c079c8 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,9 @@ +services: + + postgres-db: + image: postgres:16 + restart: always + ports: + - 5432:5432 + environment: + POSTGRES_PASSWORD: example \ No newline at end of file