Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit b4de061

Browse files
authored
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`.
1 parent dbe1ec0 commit b4de061

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ services:
198198
- "27017:27017"
199199
volumes:
200200
- mongo_data:/data/db
201+
- mongo_config_data:/data/configdb
201202

202203
mysql57:
203204
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci
@@ -244,6 +245,8 @@ services:
244245
default:
245246
aliases:
246247
- edx.devstack.redis
248+
volumes:
249+
- redis_data:/data
247250

248251
# storage layer for data schemas in Kafka
249252
schema-registry:
@@ -844,6 +847,8 @@ volumes:
844847
edxapp_cms_assets:
845848
elasticsearch710_data:
846849
mongo_data:
850+
mongo_config_data:
847851
opensearch12_data:
848852
mysql57_data:
849853
mysql80_data:
854+
redis_data:

0 commit comments

Comments
 (0)