This repo holds the config files and commands to spin up development containers for my personal setup. This repo holds the config files and commands to spin up development containers for my personal setup.
Note: This is a work in progress. I will be adding more containers as I go along. Feel free to contribute!
- Docker
- git
- Github
- updated docker-compose
- make
The shell scripsts have been verified and tested on arch linux. They should work on other linux distros as well.
Windows users can use WSL to run the scripts.
Optionally, on windows you can use Docker Desktop to run the containers. This is the easiest way to get started. Copy paste the commands in the scripts into the terminal.
First clone the repo and cd into the directory
git clone https://github.com/KenMwaura1/docker-setup
cd docker-setup
make sure you have the latest version of docker-compose.
make sure you have the latest version of docker-compose. follow the instructions here to install it. For arch linux users, run the following command:
sudo pacman -S docker-compose
The shell scripts in the root directory are used to spin up the containers. The scripts are named after the service they spin up. For example, to spin up the mongo container, run the following command:
./mongo.sh
Ensure the script is executable by running the following command:
chmod +x mongo.sh
Cd into the postgres-pgadmin
directory and run the following command to build the docker images for the postgres & pgadmin then start the containers:
./postgres.sh
To use pgAdmin, open a browser and navigate to localhost:5050
. The default login credentials are:
email: hippo
password: datalake
To use postgres, open a browser and navigate to localhost:5432
. The default login credentials are:
email: postgres
password: datalake
To use your own custom credentials for postgres, edit the pg-env.list
file in the postgres-pgadmin
directory.
To use your own custom credentials for pgAdmin, edit the pgadmin-env.list
file in the postgres-pgadmin
directory.
Cd into the redis
directory and run the following command to build the docker image for the redis container then start the container:
./redis.sh
In the root directory, run the following command to spin up all the containers:
./all.sh
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.