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.
This commit is contained in:
songtianlun 2025-01-23 10:11:39 +08:00
parent 5fa49d97ca
commit a15bc349a2

View File

@ -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