https://github.com/kenmwaura1/docker-setup
This repo holds the config files and commands to spin up development containers for my personal setup.
https://github.com/kenmwaura1/docker-setup
automation containers docker docker-compose shell-scripts
Last synced: 6 months ago
JSON representation
This repo holds the config files and commands to spin up development containers for my personal setup.
- Host: GitHub
- URL: https://github.com/kenmwaura1/docker-setup
- Owner: KenMwaura1
- License: mit
- Created: 2023-01-19T09:02:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-27T16:46:16.000Z (6 months ago)
- Last Synced: 2025-03-27T17:40:35.007Z (6 months ago)
- Topics: automation, containers, docker, docker-compose, shell-scripts
- Language: Shell
- Homepage:
- Size: 66.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-setup
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.[](https://github.com/KenMwaura1/docker-setup/actions/workflows/script-test.yml)
[](https://github.com/KenMwaura1/docker-setup/actions/workflows/docker-image.yml)**Note**: This is a work in progress. I will be adding more containers as I go along. Feel free to contribute!
## Table of Contents
- [docker-setup](#docker-setup)
- [Table of Contents](#table-of-contents)
- [Currently Supported Containers](#currently-supported-containers)
- [Prerequisites](#prerequisites)
- [Running the containers](#running-the-containers)
- [Postgres \& pgAdmin](#postgres--pgadmin)
- [Redis](#redis)
- [RUN ALL CONTAINERS ---\> **Not Recommended!**](#run-all-containers-----not-recommended)
- [Contributing](#contributing)## Currently Supported Containers
- [MongoDB](https://www.mongodb.com/)
- [Postgres](https://www.postgresql.org/)
- [pgAdmin](https://www.pgadmin.org/)
- [Redis](https://redis.io/)
- [mysql](https://www.mysql.com/)
- [portainer](https://www.portainer.io/)
- [ghost](https://ghost.org/)
- [wordpress](https://wordpress.org/)
- [influxdb](https://www.influxdata.com/)
- [grafana](https://grafana.com/)
- [prometheus](https://prometheus.io/)
- [ghost](https://ghost.org/)
### Prerequisites
- [Docker](https://docs.docker.com/install/linux/docker-ce/)
- [git](https://git-scm.com/downloads)
- [Github](https://github.com)
- updated [docker-compose](https://docs.docker.com/compose/install/)
- [make](https://www.gnu.org/software/make/)## Running the containers
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](https://docs.microsoft.com/en-us/windows/wsl/install-win10) to run the scripts.
Optionally, on windows you can use [Docker Desktop](https://www.docker.com/products/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
```bash
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](https://docs.docker.com/compose/install/) to install it.
For arch linux users, run the following command:```bash
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:
```bash
./mongo.sh
```Ensure the script is executable by running the following command:
```bash
chmod +x mongo.sh
```## Postgres & pgAdmin
Cd into the `postgres-pgadmin` directory and run the following command to build the docker images for the postgres & pgadmin then start the containers:
```bash
./postgres.sh
```To use pgAdmin, open a browser and navigate to `localhost:5050`. The default login credentials are:
```bash
email: hippo
password: datalake
```To use postgres, open a browser and navigate to `localhost:5432`. The default login credentials are:
```bash
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.
## Redis
Cd into the `redis` directory and run the following command to build the docker image for the redis container then start the container:
```bash
./redis.sh
```## RUN ALL CONTAINERS ---> **Not Recommended!**
In the root directory, run the following command to spin up all the containers:
```bash
./all.sh
```## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.