Skip to content

Commit

Permalink
Switched MariaDB image to use Docker volumes instead of mounts
Browse files Browse the repository at this point in the history
Addresses: MariaDB/mariadb-docker#95
Newer versions break when using mounts on Windows and Mac devices
  • Loading branch information
YoussefHenna committed Dec 24, 2022
1 parent dac7d5f commit 19eee2a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ services:
- APPLICATION=module-handbook
- MYSQL_ROOT_PASSWORD=modhand
- MYSQL_DATABASE=modhand-db-prod

# Need to use Docker volumes instead of mounts (https://github.com/MariaDB/mariadb-docker/issues/95)
# MariaDB issue that appears on Windows and Mac
volumes:
- ./mariadb_data:/var/lib/mysql
- mariadb_data:/var/lib/mysql
module-handbook-exporter:
image: ghcr.io/modulehandbook/exporter:${TAG_MODULE_HANDBOOK_EXPORTER}
container_name: modulehandbook-exporter
Expand Down Expand Up @@ -58,3 +61,6 @@ services:
- NGINX_ENTRYPOINT_QUIET_LOGS=1
depends_on:
- module-handbook
volumes:
mariadb_data:
external: false

0 comments on commit 19eee2a

Please sign in to comment.