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
- Host: GitHub
- URL: https://github.com/4kpros/docker-database
- Owner: 4kpros
- Created: 2024-07-31T08:33:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-04T20:23:38.000Z (almost 2 years ago)
- Last Synced: 2025-04-04T01:15:41.330Z (about 1 year ago)
- Topics: cache-storage, database, docker, etcd, memcached, memory, mongodb, postgresql, redis, sqlserver
- Language: Makefile
- Homepage:
- Size: 179 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/`