From 3e965ea899ba764549f12fff0e5fadd1b8671413 Mon Sep 17 00:00:00 2001 From: Viktor Baranov Date: Mon, 24 Apr 2023 21:18:09 +0300 Subject: [PATCH] Add volume for Postgres Docker container DB --- .gitignore | 5 +++-- CHANGELOG.md | 1 + docker-compose/services/docker-compose-db.yml | 2 ++ docker-compose/services/docker-compose-stats.yml | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a95629ed32..77e0d82c4c 100644 --- a/.gitignore +++ b/.gitignore @@ -48,8 +48,9 @@ dump.rdb # mix phx.gen.cert self-signed certs for dev /apps/block_scout_web/priv/cert -/docker-compose/postgres-data -/docker-compose/redis-data +/docker-compose/services/blockscout-db-data +/docker-compose/services/stats-db-data +/docker-compose/services/redis-data /docker-compose/tmp /docker-compose/logs diff --git a/CHANGELOG.md b/CHANGELOG.md index fb98307fed..acdf6c8ab5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ ### Chore +- [#7332](https://github.com/blockscout/blockscout/pull/7332) - Add volume for Postgres Docker containers DB - [#7328](https://github.com/blockscout/blockscout/pull/7328) - Update Docker image tag latest with release only - [#7312](https://github.com/blockscout/blockscout/pull/7312) - Add configs for Uniswap v3 transaction actions to index them on Base Goerli - [#7310](https://github.com/blockscout/blockscout/pull/7310) - Reducing resource consumption on bs-indexer-eth-goerli environment diff --git a/docker-compose/services/docker-compose-db.yml b/docker-compose/services/docker-compose-db.yml index 861d6cd1e5..51a139dff4 100644 --- a/docker-compose/services/docker-compose-db.yml +++ b/docker-compose/services/docker-compose-db.yml @@ -12,3 +12,5 @@ services: POSTGRES_HOST_AUTH_METHOD: 'trust' ports: - 7432:5432 + volumes: + - ./blockscout-db-data:/var/lib/postgresql/data/ diff --git a/docker-compose/services/docker-compose-stats.yml b/docker-compose/services/docker-compose-stats.yml index 2b73bff17b..0995cb8ae6 100644 --- a/docker-compose/services/docker-compose-stats.yml +++ b/docker-compose/services/docker-compose-stats.yml @@ -30,3 +30,5 @@ services: - STATS__RUN_MIGRATIONS=true ports: - 8153:8050 + volumes: + - ./stats-db-data:/var/lib/postgresql/data/