Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vutran/docker-nginx-hhvm
This is a simple container with Nginx, HHVM, and Ubuntu 14.04.
https://github.com/vutran/docker-nginx-hhvm
docker dockerfile hhvm nginx
Last synced: 1 day ago
JSON representation
This is a simple container with Nginx, HHVM, and Ubuntu 14.04.
- Host: GitHub
- URL: https://github.com/vutran/docker-nginx-hhvm
- Owner: vutran
- Created: 2015-05-27T20:23:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-03T10:52:26.000Z (over 9 years ago)
- Last Synced: 2024-05-02T05:43:21.541Z (8 months ago)
- Topics: docker, dockerfile, hhvm, nginx
- Language: PHP
- Homepage: https://registry.hub.docker.com/u/vutran/docker-nginx-hhvm/
- Size: 129 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [Ubuntu 14.04 LTS + Nginx + HHVM](https://registry.hub.docker.com/u/vutran/docker-nginx-hhvm/)
This is a simple container with Nginx, HHVM, and Ubuntu 14.04.
-----
To pull this image from Docker Hub:
docker pull vutran/docker-nginx-hhvm
To run an instance of this image:
docker run --name mywebapp -d -P vutran/docker-nginx-hhvm
You can mount your local application directory to the container at `/var/www/html`:
docker run --name mywebapp -d -P -v /src/html:/var/www/html vutran/docker-nginx-hhvm
Open the URL in the browser
open http://$(boot2docker ip):$(docker port mywebapp 80 | sed 's/0.0.0.0://g')
## Dockerfile
You can also build your own image with this as the base and apply your own application-specific configurations if needed.
For more information, please see the [Dockerfile documentations](http://docs.docker.com/reference/builder/).
### Dockerfile
FROM vutran/docker-nginx-hhvm
# Execute or run any additional instructions here such
# Example:
# COPY website.conf /etc/nginx/conf.d/website.conf
# ENV myEnvVar myEnvValue
## Docker Compose
If you have a complex application, you can use Docker Compose to run everything in a single command.
For more information, please see the [Docker Compose documentation](http://docs.docker.com/compose/)
### docker-compose.yml
web:
build: .
volumes:
- .:/var/www/html