An easy way to maintain PHP version with some essential config like as virtual Host, Mysql, Redis and more. It's only for localhost :)
- Clone the easy-docker github repository
git clone https://github.com/rinkurock/easy-docker ~/easy-docker
- Go to easy-docker directory
cd easy-docker
- Copy .env.example to .env
cp .env.example .env
- Copy docker-compose.yml.example to docker-compose.yml
cp docker-compose.yml.example docker-compose.yml
- Edit APPLICATION=/your-root-project-directory & database setting on .env file
nano .env
- Run docker-compose
docker-compose up -d
- Go to http://localhost:9999 on browser
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
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 $* )
}
- 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
All issues, PRs and advices are more than welcome to discuss about :).
MIT