https://github.com/vinyvicente/environment-docker
Docker PHP 5.6/7.1 Nginx
https://github.com/vinyvicente/environment-docker
docker environment nginx php56 php7
Last synced: 2 months ago
JSON representation
Docker PHP 5.6/7.1 Nginx
- Host: GitHub
- URL: https://github.com/vinyvicente/environment-docker
- Owner: vinyvicente
- License: gpl-3.0
- Created: 2017-07-07T02:21:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-07T13:18:19.000Z (almost 9 years ago)
- Last Synced: 2025-04-02T02:50:47.831Z (about 1 year ago)
- Topics: docker, environment, nginx, php56, php7
- Language: Nginx
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# environment-docker
Docker PHP 5.6/7.1 Nginx
### Instructions
````sh
# install ubuntu in docker - ubuntu:latest
docker pull ubuntu
# build image to webserver 7.1/nginx
sudo docker build -t webserver .
# build image to webserver 5.6/nginx
cd php56/
sudo docker build -t webserver56 .
# up nginx with php 7.1
docker run -it --name nginxphp71 -d -p 8088:80 webserver:latest
# up nginx with php 5.6
docker run -it --name nginxphp56 -d -p 8098:80 webserver56:latest
````