This repository contains a Docker Compose configuration for setting up a development environment with PostgreSQL and Redis. It's designed to provide a quick and easy way for development.
- PostgreSQL
- Redis
- Environment variable configuration
- Resource management for containers
- Easy use
- Clone this repository:
docker network create your-network # default is 'devdev'
git clone https://github.com/hunter-ji/postgres-redis-dev-docker-compose.git
cd postgres-redis-dev-docker-compose
-
Edit the
.env
file and set the values for your environment. -
To start the services:
docker-compose up -d
To stop the services:
docker-compose down
To view logs:
docker-compose logs