Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexmacarthur/local-docker-db
A bunch o' Docker Compose files used to quickly spin up local databases.
https://github.com/alexmacarthur/local-docker-db
database docker docker-compose faunadb mariadb mongodb mysql postgresql
Last synced: about 1 month ago
JSON representation
A bunch o' Docker Compose files used to quickly spin up local databases.
- Host: GitHub
- URL: https://github.com/alexmacarthur/local-docker-db
- Owner: alexmacarthur
- License: mit
- Created: 2019-09-03T19:57:26.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-04T01:08:15.000Z (6 months ago)
- Last Synced: 2024-09-28T11:04:50.974Z (about 1 month ago)
- Topics: database, docker, docker-compose, faunadb, mariadb, mongodb, mysql, postgresql
- Language: Go
- Size: 54.7 KB
- Stars: 285
- Watchers: 7
- Forks: 36
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - alexmacarthur/local-docker-db - A bunch o' Docker Compose files used to quickly spin up local databases. (Go)
- awesome-docker - Local Docker DB - compose samples for a lot of databases by [@alexmacarthur](https://github.com/alexmacarthur) (Demos and Examples / Monitoring Services)
README
# Local Docker DB
A collection of Docker Compose files I've used to quickly spin up local databases of various sorts.
# Included Databases
Database | Docker Compose Configuration | Website
----------- | ------------------------------- | ----------------------------------
Aerospike | [./aerospike](./aerospike) |
ClickHouse | [./clickhouse](./clickhouse) |
DynamoDB | [./dynamo](./dynamo/) |
Fauna | [./fauna](./fauna/) |
KVRocks | [./kvrocks](./kvrocks/) |
MariaDB | [./maria](./maria/) |
MeiliSearch | [./meilisearch](./meilisearch/) |
MongoDB | [./mongo](./mongo/) |
NebulaGraph | [./nebulagraph](./nebulagraph/) |
MySQL | [./mysql](./mysql/) |
PostgreSQL | [./postgres](./postgres/) |
Redis | [./redis](./redis/) |
RedPanda | [./redpanda](./redpanda) |
ScyllaDB | [./scylla](./scylla) |
SQL Server | [./mssqlserver](./mssqlserver) |
Tarantool | [./tarantool](./tarantool/) |
TiDB | [./tidb](./tidb/) |
YugaByteDB | [./yugabyte](./yugabyte) |## Usage
Clone the repo or copy a `docker-compose.yml` file to your system, `cd` into that directory, and turn it on with `docker-compose up` (unless otherwise noted by the directory's `README.md`). You may also use a `docker-compose.override.yml` file inside this repository to customize a container.
For a full reference on how to use Docker Compose, [go here](https://docs.docker.com/compose/reference/).
## Local Persistence
In each setup, a managed volume is created to persist each container's data. This volume can be deleted by passing the `-v` option when deleting the container.
```
docker-compose down -v
```## Contributions
If you have a Docker Compose configuration for a database not seen here, please consider making a pull request to add it!
## TODO
- add data volume binding for each database
- add all possible environment variables
- add example how to connect with client, with or without docker (have client program installed), and with go