From b4de061f9a7fed082ed567541417c5ba9b66d12d Mon Sep 17 00:00:00 2001 From: Mohamed Akram Date: Thu, 31 Aug 2023 04:24:30 +0400 Subject: [PATCH] fix: add names to redis and mongo volumes (#1153) The [mongo](https://hub.docker.com/_/mongo) and [redis](https://hub.docker.com/_/redis) images provide additional volumes that aren't specified in the compose files. This ensures they have proper names and aren't anonymous. This fix should prevent the accumulation over time of anonymous volumes (long hexadecimal names) that show up in `docker volume ls`. --- docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 2b7f4d4cc0..5fe5c4d61f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -198,6 +198,7 @@ services: - "27017:27017" volumes: - mongo_data:/data/db + - mongo_config_data:/data/configdb mysql57: command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci @@ -244,6 +245,8 @@ services: default: aliases: - edx.devstack.redis + volumes: + - redis_data:/data # storage layer for data schemas in Kafka schema-registry: @@ -844,6 +847,8 @@ volumes: edxapp_cms_assets: elasticsearch710_data: mongo_data: + mongo_config_data: opensearch12_data: mysql57_data: mysql80_data: + redis_data: