# docker-wordpress-nginx **Repository Path**: easyroad/docker-wordpress-nginx ## Basic Information - **Project Name**: docker-wordpress-nginx - **Description**: 这个是一个基于ubuntu14.04 构建的wordpress php-fpm ,nginx 的环境。 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-03-12 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # docker-wordpress-nginx A Dockerfile that installs the latest wordpress, nginx, php-apc and php-fpm. NB: A big thanks to [jbfink](https://github.com/jbfink/docker-wordpress) who did most of the hard work on the wordpress parts! You can check out his [Apache version here](https://github.com/jbfink/docker-wordpress). ## Installation The easiest way to get this docker image installed is to pull the latest version from the Docker registry: ```bash $ docker pull eugeneware/docker-wordpress-nginx ``` If you'd like to build the image yourself then: ```bash $ git clone https://github.com/eugeneware/docker-wordpress-nginx.git $ cd docker-wordpress-nginx $ sudo docker build -t="eugeneware/docker-wordpress-nginx" . ``` ## Usage To spawn a new instance of wordpress on port 80. The -p 80:80 maps the internal docker port 80 to the outside port 80 of the host machine. ```bash $ sudo docker run -p 80:80 --name docker-wordpress-nginx -d eugeneware/docker-wordpress-nginx ``` Start your newly created docker. ``` $ sudo docker start docker-wordpress-nginx ``` After starting the docker-wordpress-nginx check to see if it started and the port mapping is correct. This will also report the port mapping between the docker container and the host machine. ``` $ sudo docker ps 0.0.0.0:80 -> 80/tcp docker-wordpress-nginx ``` You can the visit the following URL in a browser on your host machine to get started: ``` http://127.0.0.1:80 ```