Skip to content

Commit 19eee2a

Browse files
committed
Switched MariaDB image to use Docker volumes instead of mounts
Addresses: MariaDB/mariadb-docker#95 Newer versions break when using mounts on Windows and Mac devices
1 parent dac7d5f commit 19eee2a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docker-compose.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ services:
99
- APPLICATION=module-handbook
1010
- MYSQL_ROOT_PASSWORD=modhand
1111
- MYSQL_DATABASE=modhand-db-prod
12+
13+
# Need to use Docker volumes instead of mounts (https://github.com/MariaDB/mariadb-docker/issues/95)
14+
# MariaDB issue that appears on Windows and Mac
1215
volumes:
13-
- ./mariadb_data:/var/lib/mysql
16+
- mariadb_data:/var/lib/mysql
1417
module-handbook-exporter:
1518
image: ghcr.io/modulehandbook/exporter:${TAG_MODULE_HANDBOOK_EXPORTER}
1619
container_name: modulehandbook-exporter
@@ -58,3 +61,6 @@ services:
5861
- NGINX_ENTRYPOINT_QUIET_LOGS=1
5962
depends_on:
6063
- module-handbook
64+
volumes:
65+
mariadb_data:
66+
external: false

0 commit comments

Comments
 (0)