An open API service indexing awesome lists of open source software.

https://github.com/4kpros/docker-database

Simple way to start various database containers
https://github.com/4kpros/docker-database

cache-storage database docker etcd memcached memory mongodb postgresql redis sqlserver

Last synced: 5 months ago
JSON representation

Simple way to start various database containers

Awesome Lists containing this project

README

          

# docker-database

**Overview**

This project provides a convenient way to start various database containers (PostgreSQL, MongoDB, SQL Server, Redis, Memcached, and etcd) using a simple `.env` file for configuration. It also includes a Makefile for easy execution.

**Features:**

* **Multiple databases:** Supports PostgreSQL, MongoDB, SQL Server, Redis, Memcached, and etcd.
* **`.env` configuration:** Customizable settings through an `.env` file.
* **Makefile:** Streamlined execution with a Makefile.
* **Flexibility:** Easily add or remove databases as needed.

**Getting Started**

**Prerequisites:** Docker and Make must be installed on your system.

**Installation:**

1. **Clone the repository:**
```bash
git clone https://github.com/4kpros/docker-database.git

2. **Create a .env file: Copy the provided *.env.example* file and rename it to *.env* Customize the settings as required:**
```bash
cp .env.example .env

3. **Build and run: Use the provided Makefile to build and run the containers:**

- To Start a specific service (replace with the service name: `postgres` `mongodb` `sqlserver` `redis` `memcached` `etcd`)
```bash
make

- Example:
```bash
make postgres

- To Start all the services
```bash
make all

4. **To stop and remove the containers:**

- To Stop a specific service (replace `` with the service name: `postgres` `mongodb` `sqlserver` `redis` `memcached` `etcd`)
```bash
make stop-

- Example:
```bash
make stop-postgres

- To Stop all the services
```bash
make stop-all

5. **Generated data**

Data for each service is generated into the folder `build/data/`