diff --git a/back_end/src/main/java/hackathon/FrisbYEE/rest/ActiviteResources.java b/back_end/src/main/java/hackathon/FrisbYEE/rest/ActiviteResources.java new file mode 100644 index 0000000..405ed1c --- /dev/null +++ b/back_end/src/main/java/hackathon/FrisbYEE/rest/ActiviteResources.java @@ -0,0 +1,5 @@ +package hackathon.FrisbYEE.rest; + +public class ActiviteResources { + +} 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" +