From 1a87ac79ee6e5d85f7f67863dd25f27b6ca2aadb Mon Sep 17 00:00:00 2001 From: osbm Date: Mon, 5 May 2025 16:26:08 +0300 Subject: [PATCH] ignore data folder and use it for database --- .gitignore | 9 +++------ docker-compose.yml | 4 +++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index ab3e8ce..ed85c50 100644 --- a/.gitignore +++ b/.gitignore @@ -155,10 +155,7 @@ dmypy.json # Cython debug symbols cython_debug/ -# PyCharm -# JetBrains specific template is maintained in a separate JetBrains.gitignore that can -# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore -# and can be added to the global gitignore or merged into this file. For a more nuclear -# option (not recommended) you can uncomment the following to ignore the entire idea folder. -#.idea/ + +# database +data/ \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 76c3981..e625283 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,4 +9,6 @@ services: POSTGRES_DB: postgres_db ports: - - "5434:5432" \ No newline at end of file + - "5434:5432" + volumes: + - ./data/postgres:/var/lib/postgresql/data