Deploy of static website using Nginx running as non-root user on Alpine (very light container).
This project is intended to be used along with a proxy container such as my docker-webproxy and a network to connect this container to the proxy container.
- Create a network with a proxy container.
- Put your static website under the directory
./websitesin this repo. - Run
docker-compose up -dand that's it.
Of course, you can also deploy your static website without any docker proxy or network. In this case, copy the docker-compose-noproxy file to ./docker-compose.yml. By default, it will listen on port 8080.
mv docker-compose-noproxy.yml docker-compose.yml
docker-compose up -d
Do whatever you want with the code of this repo.