Coder Social home page Coder Social logo

rinkurock / easy-docker Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 5.0 70 KB

An easy way to maintain PHP version with some essential config like as virtual Host, Mysql, Redis etc.

License: Other

Shell 12.61% Dockerfile 85.52% Makefile 1.87%
docker virtual-hosts localhost adminer php

easy-docker's Introduction

Easy Docker

An easy way to maintain PHP version with some essential config like as virtual Host, Mysql, Redis and more. It's only for localhost :)

Getting started

  1. Clone the easy-docker github repository
git clone https://github.com/rinkurock/easy-docker ~/easy-docker
  1. Go to easy-docker directory
cd easy-docker
  1. Copy .env.example to .env
cp .env.example .env
  1. Copy docker-compose.yml.example to docker-compose.yml
cp docker-compose.yml.example docker-compose.yml
  1. Edit APPLICATION=/your-root-project-directory & database setting on .env file
nano .env
  1. Run docker-compose
docker-compose up -d
  1. Go to http://localhost:9999 on browser

Setup Virtual Host for porject

Run:

sudo ./v-host.sh

and follow the instructions on command line

  • sudo for only addning local domain address on /etc/hosts file on your system.

You can check it by run:

cat /etc/hosts

Run:

docker-compose ps

Accessing Globally

Sometimes you may want to docker-compose up your easy-docker machine from anywhere on your filesystem. You can do this on Unix systems by adding a Bash function to your Bash profile. These scripts will allow you to run any docker-compose command from anywhere on your system and will automatically point that command to your easy-docker installation:

function easydocker() {
    ( cd ~/easy-docker && docker-compose $* )
}

Features

  • Vertual Host with nginx
  • PHP FPM
  • PHP version 5.5.34, 5.6, 7.0, 7.1, 7.1.3, 7.2, 7.3.22, 7.4.13, 8.1.0 etc
  • MySql 5.7, 8.0.19
  • Postgres
  • Adminer
  • Redis
  • Mongo
  • Consul
  • RabbitMq
  • Elastic Search
  • Kibana

Contribution

All issues, PRs and advices are more than welcome to discuss about :).

License

MIT

easy-docker's People

Contributors

mahfuz05 avatar rinku-pathao avatar rinkurock avatar sarahman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.