From c99b75d746444861c35cd8c945147f3fd3372d5c Mon Sep 17 00:00:00 2001 From: Koki Oyatsu Date: Sun, 21 Jul 2024 21:15:52 +0900 Subject: [PATCH] change volume settings (docker-compose.yml) --- docker-compose.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ecebd64..c24be85 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: healthcheck: test: ["CMD", "pg_isready", "-U", "postgres"] volumes: - - ./docker-volumes/postgres:/var/lib/postgresql/data + - postgres-data:/var/lib/postgresql/data redis: restart: always @@ -18,7 +18,7 @@ services: healthcheck: test: ["CMD", "redis-cli", "ping"] volumes: - - ./docker-volumes/redis:/data + - redis-data:/data # es: # restart: always @@ -60,9 +60,14 @@ services: - redis # - es volumes: - - ./docker-volumes/rebacklogs/storage:/rebacklogs/storage + - app-storage:/rebacklogs/storage networks: external_network: internal_network: internal: true + +volumes: + postgres-data: + app-storage: + redis-data: