Skip to content

alexmacarthur/local-docker-db

Repository files navigation

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 https://aerospike.com/
ClickHouse ./clickhouse https://clickhouse.tech/
DynamoDB ./dynamo https://aws.amazon.com/dynamodb/
Fauna ./fauna https://fauna.com/
KVRocks ./kvrocks https://kvrocks.apache.org/
MariaDB ./maria https://mariadb.org/
MeiliSearch ./meilisearch https://meilisearch.com/
MongoDB ./mongo https://mongodb.com/
NebulaGraph ./nebulagraph https://nebula-graph.io/
MySQL ./mysql https://mysql.com/
PostgreSQL ./postgres https://postgresql.org/
Redis ./redis https://redis.io/
RedPanda ./redpanda https://vectorized.io/
ScyllaDB ./scylla https://scylladb.com/
SQL Server ./mssqlserver https://www.microsoft.com/sql-server/
Tarantool ./tarantool https://tarantool.io/
TiDB ./tidb https://pingcap.com/
YugaByteDB ./yugabyte https://yugabyte.com/

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.

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

About

A bunch o' Docker Compose files used to quickly spin up local databases.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 7