From 22fce95294134068ba9d4b4d1bd36ddbdd73debc Mon Sep 17 00:00:00 2001 From: Alexis Leboeuf Date: Mon, 5 Jan 2026 11:46:02 +0100 Subject: [PATCH] Adding Docker environment + dependencies --- back_end/pom.xml | 2 +- .../src/main/resources/application.properties | 12 +++++++++++- docker-compose.yml | 17 +++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/back_end/pom.xml b/back_end/pom.xml index 54df3f5..201a645 100644 --- a/back_end/pom.xml +++ b/back_end/pom.xml @@ -28,7 +28,7 @@ - 25 + 17 diff --git a/back_end/src/main/resources/application.properties b/back_end/src/main/resources/application.properties index 8cc7072..e8c426c 100644 --- a/back_end/src/main/resources/application.properties +++ b/back_end/src/main/resources/application.properties @@ -1 +1,11 @@ -spring.application.name=FrisbYEE +spring.datasource.url=jdbc:postgresql://localhost:5432/frisbyee +spring.datasource.username=postgres +spring.datasource.password=postgres +spring.datasource.driver-class-name=org.postgresql.Driver + +spring.jpa.hibernate.ddl-auto=update +spring.jpa.show-sql=true +spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect +spring.datasource.url=jdbc:postgresql://localhost:5432/frisbyee +spring.datasource.username=frisbyee_user +spring.datasource.password=secret \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index c78c425..3f010ae 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,3 +27,20 @@ services: interval: 5s timeout: 5s retries: 20 + postgres: + image: postgres:16 + container_name: frisbyee-postgres + ports: + - "5432:5432" + environment: + POSTGRES_DB: frisbyee + POSTGRES_USER: frisbyee_user + POSTGRES_PASSWORD: secret + volumes: + - postgres_data:/var/lib/postgresql/data + +volumes: + postgres_data: + +version: "3.9" +