From daa75a251612003d9a799babb193d1bc94b0b547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarno=20Kiesil=C3=A4inen?= Date: Mon, 11 Aug 2025 17:27:25 +0000 Subject: [PATCH] fix: postgresql container volume --- backend/src/main/resources/application.yml | 4 ++-- local-dev/compose.yml | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/backend/src/main/resources/application.yml b/backend/src/main/resources/application.yml index f0421dd..6dc990d 100644 --- a/backend/src/main/resources/application.yml +++ b/backend/src/main/resources/application.yml @@ -1,5 +1,5 @@ server: - port: 8080 + port: 8090 servlet: context-path: /api @@ -9,7 +9,7 @@ spring: # Database Configuration datasource: - url: jdbc:postgresql://localhost:5432/vibing + url: jdbc:postgresql://dind:5432/vibing username: vibing password: vibing driver-class-name: org.postgresql.Driver diff --git a/local-dev/compose.yml b/local-dev/compose.yml index a1fc9b5..e48afff 100644 --- a/local-dev/compose.yml +++ b/local-dev/compose.yml @@ -8,4 +8,7 @@ services: POSTGRES_PASSWORD: vibing POSTGRES_DB: vibing volumes: - - postgres_data:/var/lib/postgresql/data \ No newline at end of file + - postgres_data:/var/lib/postgresql/data + +volumes: + postgres_data: