Docker4Dev
This project are still under experimental. There's a problem about pass through env to Dockerfile and I working on it.
Inspiration from Dockerized by kasperisager PHP development stack: Nginx, MariaDB, MongoDB, PHP-FPM, HHVM, Memcached, Redis, Elasticsearch and RabbitMQ
Docker Web Server Stack for Laravel Framework and Web Development on Windows 10
What's inside
apcu bcmath bz2 cgi cli common curl fpm gmagick gd geoip intl igbinary imagick json mbstring mcrypt memcached mongodb msgpack mysql odbc opcache pear pspell readline recode redis sqlite3 sqlsrv tidy xml uuid xdebug yaml zip
Requirements
Configuration
Change variable in .env file
APP_PROJECT_NAME=app
APP_SITE_URL=yoursitename.dev
APP_SSH_USER_NAME=docker
APP_SSH_USER_PASSWORD=docker
APP_MYSQL_VERSION=5.7
APP_MYSQL_ROOT_PASSWORD=r00tp@$$w0rd
APP_MYSQL_DATABASE=docker4dev
APP_MYSQL_USER=docker4dev
APP_MYSQL_PASSWORD=docker4dev
Running
Set up a Docker and then run:
$ docker-compose up
After build finished then you can login to workspace container via ssh.
HOST = 127.0.0.1
PORT = 2222
Because we working on root permission so you just run command sudo passwd
to change root password and run su
and type your root password that you changed.
Your workspace is webroot
on Windows host and /var/www/APP_SITE_URL
on Docker container.
That's it!
License
Copyright © 2017 Pathompong Pechkongtong. Licensed under the terms of the MIT license.