This Git project allows a local developer to spin up all local infrastructure needed to run a microservices solution with Postgres, Redis, and RabbitMQ. This ensures a consistent setup across developers, shared local configurations, and isolation of components from other products that you might be working on.
The following infrastructure will be scaffolded as Containers on your local machine:
Service | Port | Example Connection String |
---|---|---|
Postgres | 49003 | postgres://[email protected]:49003 |
Redis | 49002 | redis://127.0.0.1:49002 |
RabbitMQ | 49000 | amqp://127.0.0.1:49000 |
RabbitMQ Admin | 49001 | http://127.0.0.1:49001 |
- Install Docker
- Open a Terminal
- Clone this repo and specify a name for it locally (the folder name is how Docker will name the Containers)
- e.g.
git clone https://github.com/ericnograles/docker-baselines.git some-product-1
- e.g.
- Go to the root of the cloned repo and execute
./start.sh
- Open a Terminal
- Go to the root of the cloned repo
- Execute
docker-compose restart
WARNING: All persisted data will be destroyed
- Open a Terminal
- Go to the root of the cloned repo
- Execute
docker-compose down
- Execute
docker-compose up -d && ./start.sh