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

Commit

Permalink
fix: add names to redis and mongo volumes (#1153)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
mohd-akram authored Aug 31, 2023
1 parent dbe1ec0 commit b4de061
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -244,6 +245,8 @@ services:
default:
aliases:
- edx.devstack.redis
volumes:
- redis_data:/data

# storage layer for data schemas in Kafka
schema-registry:
Expand Down Expand Up @@ -844,6 +847,8 @@ volumes:
edxapp_cms_assets:
elasticsearch710_data:
mongo_data:
mongo_config_data:
opensearch12_data:
mysql57_data:
mysql80_data:
redis_data:

0 comments on commit b4de061

Please sign in to comment.