From 41020cdc0026c0e284f17a65e8a5846217a760ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarno=20Kiesil=C3=A4inen?= Date: Mon, 11 Aug 2025 17:29:43 +0000 Subject: [PATCH] fix: postgresql container volume MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.naali.duckdns.org/jarno/vibing/pulls/7 Co-authored-by: Jarno Kiesiläinen Co-committed-by: Jarno Kiesiläinen --- 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: