/docker

Dockerfiles for nginx,php,tomcat and .etc

Primary LanguageShellApache License 2.0Apache-2.0

docker

This repository uses to storage some files for docker containers.

run DNMP(docker nginx mariadb php)

/path/nginx/www is the path in host to storage web files /path/mariadb/data is the path in host to storage database

        sudo docker run --name mariadb -p 3306:3306 -v /path/mariadb/data:/var/lib/mysql -d liumiaocn/maria(note: build by mariadb-second)

        sudo docker run --name php-fpm -v /path/nginx/www:/var/www --link mariadb:mariadb --link mongodb:mongodb -d php-fpm:7.2

        sudo docker run --name nginx -p 80:80 -v /path/nginx/www:/var/www --link php-fpm:php-fpm -d nginx:1.14.0