From 445a1f7fa44bd3b8f9df9aec85077551afa4e476 Mon Sep 17 00:00:00 2001 From: Lisoveliy Date: Fri, 18 Jul 2025 16:23:23 +0300 Subject: [PATCH] fix: fix of docker compose file --- compose.dev.yml | 11 +++++++++-- compose.yml | 14 +++++++++++--- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/compose.dev.yml b/compose.dev.yml index 7770047..23cc888 100644 --- a/compose.dev.yml +++ b/compose.dev.yml @@ -9,7 +9,7 @@ services: ports: - "5432:5432" volumes: - - ./.docker/postgres_data:/var/lib/postgresql/data + - postgres_data:/var/lib/postgresql/data networks: - jobot @@ -35,4 +35,11 @@ services: - jobot networks: - jobot: \ No newline at end of file + jobot: + +volumes: + postgres_data: + driver: local + driver_opts: + type: none + device: ./.docker/postgres_data \ No newline at end of file diff --git a/compose.yml b/compose.yml index 5c87703..82dd186 100644 --- a/compose.yml +++ b/compose.yml @@ -5,9 +5,9 @@ services: image: postgres:15 environment: POSTGRES_PASSWORD: LocalDbPass - POSTGRES_DB: jobot + POSTGRES_DB: jobot volumes: - - ./.docker/postgres_data:/var/lib/postgresql/data + - postgres_data:/var/lib/postgresql/data networks: - jobot @@ -32,4 +32,12 @@ services: - jobot networks: - jobot: \ No newline at end of file + jobot: + + +volumes: + postgres_data: + driver: local + driver_opts: + type: none + device: ./.docker/postgres_data \ No newline at end of file