Giter Club home page Giter Club logo

docker-setup's Introduction

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.

Script Test CI Docker Image CI

Note: This is a work in progress. I will be adding more containers as I go along. Feel free to contribute!

Table of Contents

Currently Supported Containers

Prerequisites

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 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

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:

./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.

Redis

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

RUN ALL CONTAINERS ---> Not Recommended!

In the root directory, run the following command to spin up all the containers:

./all.sh

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.