Basic nginx and php-fpm on centos container.
10K+
Docker image for a basic nginx on centos container. This image allows for easy website and config updates from a git repository.
To get an instance up and running, you would need to do the following:
docker run -d --name=your_website -p 80:80 -p 443:443 camw/centos-nginxdocker exec -ti your_website get https://www.github.com/user/your_repo.gitdocker restart your_websiteThen, when you've made changes to your site in git, just run docker exec -ti your_website update to update your container with the new changes.
This image may not serve all your needs as is. There may, for example, be other packages you need installed in which case you could create a dockerfile which starts with this this image and adds what you need. As an example:
FROM camw/centos-nginx:latest
MAINTAINER Your Name <[email protected]>
RUN yum -y install package-x
You may also need a more complicated build process which requires more than just copying files into the folder such as grunt minification and versioning. That could be included in the scripts/publish_src.sh script which is in your website repo, forked from https://github.com/CamW/centos-nginx-demo
Content type
Image
Digest
Size
105.6 MB
Last updated
about 9 years ago
docker pull camw/centos-nginx