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
.confsuffix tonginx/conf.dfolder -
And you should add shared volumes in
docker-compose.yml -
Then restart the container.
Enjoy it!
-
Put a new
my.cnffile in themysql/conf.dfolder 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
MySQLdata files will be located indata/mysqlfolder. - The shared
MongoDBdata files will be located indata/mongodbfolder.
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.