I've modified the NGINX image to comply with my wishes for directory and file structure.
Sites are structured as follows:
- config: Additional configurations included by various applications
- logs: Logs from all programs. NGINX logs in a subdirectory called 'nginx'.
- public: Files served by NGINX
The image can be easily extended with for instance PHP-support
I start a new container with the following command:
docker run -d --name [NAME] -e VIRTUAL_HOST=[DOMAINS] --restart=always -v [DIRECTORY]:/data:rw bdalenoord/nginx
Substitute the values between square brackets.