Docker deployment for development and production.
All the services include:
- Nginx
- PHP
- MySQL
- Memcached
- Redis
- MongoDB
-
Configure
./configure.sh
-
Change the configure files if you want.
-
Run
docker-compose up -d
Generally by executing the configure.sh
shell, all the basic configure will be ok.
-
You can add any nginx config file named with
.conf
suffix tonginx/conf.d
folder -
And you should add shared volumes in
docker-compose.yml
-
Then restart the container.
Enjoy it!
-
Put a new
my.cnf
file in themysql/conf.d
folder if needed. -
Then restart the container.
Well, It's OK!
After executing the configure.sh
shell, The php.ini
and php-fpm.conf
files can be changed if necessary.
- The shared
MySQL
data files will be located indata/mysql
folder. - The shared
MongoDB
data files will be located indata/mongodb
folder.
ruogoo/docker-env
has worked well on ruogoo.com for a long time.
Everyone can bring it to other product, but do not guarantee it works.
This Source code is under MIT license.