scrollmapper / bible_databases

Bible versions and cross-reference databases.
1.01k stars 348 forks source link

Add basic docker-compose config #53

Closed perlun closed 3 years ago

perlun commented 3 years ago

Thanks for a nice project! :+1:

This PR adds a simple Docker Compose file for launching a local MariaDB instance, importing all the .sql files from the sql/ folder into a database named bible. It can be useful for people who prefer to run their database in Docker containers (like myself).

Note that the data folder (/var/lib/mysql) is ephemeral in this case. This is fine for my use case (just wanting to import this data to be able to query it), but for people who want to add their own custom tables, it might not be the best approach. This is trivial to fix in the docker-compose.yaml config, but is left as an exercise to the reader. :wink: