This is a Dockerfile for build and run web-applications installed on Nginx + PHP-FPM + MySQL
-
Download project:
$ git clone https://[email protected]/vukor/docker-lnmp.git ~/docker
-
Install docker on your system
-
Install dw for managing docker container "vukor/docker-lnmp":
$ cd ~/docker/
$ sudo ./dw install
( for GNU/Linux users )$ sudo ./dw-macos install
( for Mac OSX users ) -
Build docker image docker-lnmp:
$ dw build
Or pull already building image:
$ docker pull vukor/docker-lnmp
-
Create mysql_data container:
$ docker run --name docker-data -i -t vukor/docker-data
-
Set MYSQL_LOGIN / MYSQL_PASSWORD for MySQL app in docker-lnmp/scripts/cmd_start.sh
-
Run container:
$ dw start
-
For test nginx open in your browser page http://localhost/
-
For test MySQL run on local host
$ mysql -h YOUR-IP-ADDRESS -u MYSQL_LOGIN -pMYSQL_PASSWORD mysql
-
For access to running container over ssh run on your host:
$ dw attach
Run dw -h for using help
etc - configs files
www - web files
logs - nginx logs
This project is deprecated, use https://github.com/vukor/docker-web-stack