A shared container for micro services. This resource servers (db, redis, rabbitmq, etc.), are meant for local development purposes only.
The objective is driven by concepts of abstraction, resource sharing, and separation of concerns, by having a separate docker project whose purpose is to encapsulate resource containers that other projects can connect to, without having to spin up their own containers for databases and the likes. Thus having more lightweight docker setups for individual projects, and a more appropriate setup for integrated local development across multiple projects.
- Docker
- Start the containers:
To check that the container is running, open a terminal window/tab and run
$ docker compose up
docker ps
to see info about the currently running docker containers. Any or all of the following container names (depending on the ones you choose to run) should be listed among the running containers:local-postgres
local-mariadb
local-mysql
local-redis
local-rabbit
local-nats
You can modify the default docker compose
command to specify only the services you want started. E.g.
# To start only the mariadb, redis, and nats instances:
$ docker compose up local-mariadb local-redis local-nats