From a15bc349a249742faf8908e91ebdbd8add958c02 Mon Sep 17 00:00:00 2001 From: songtianlun Date: Thu, 23 Jan 2025 10:11:39 +0800 Subject: [PATCH] feat: update docker compose configuration - Update PostgreSQL data directory to point to taw_data/pg - Update Redis data directory to point to daw_data/redis This change updates the Docker compose file to use different data directories for PostgreSQL and Redis. It improves the overall organization and clarity of the configuration. --- compose.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compose.yaml b/compose.yaml index 5cbed47..7b13c84 100644 --- a/compose.yaml +++ b/compose.yaml @@ -29,7 +29,7 @@ services: db: image: postgres:16 volumes: - - ./data/pg:/var/lib/postgresql/data + - ../taw_data/pg:/var/lib/postgresql/data environment: - POSTGRES_PASSWORD=xxx - POSTGRES_DB=db @@ -37,5 +37,5 @@ services: redis: image: redis:7-alpine volumes: - - ./data/redis:/data + - ../daw_data/redis:/data command: redis-server --appendonly yes \ No newline at end of file