Nginx in docker container, with config files and content web in filesystem & reverse proxy capable.
Use one alternative
$ git clone https://username:[email protected]/app4rpi/docker-nginx.git
$ git clone https://github.com/app4rpi/docker-nginx.git
$ cd nginxDocker
$ docker build --rm -t nginx4docker .
The image nginx:latest has been created with a size of 17.8MB
$ docker run -d --name nginx --net=host nginx4docker:latest
$ docker run -d --net=host -v /var/www/html:/usr/share/nginx/html --name nginx nginx4docker:latest
$ docker run -d --net=host -v /var/www:/var/www/ -v /app/nginx:/etc/nginx/conf.d/ --name nginx nginx4docker:latest
$ docker run -d --restart always --net=host -v /var/www:/var/www/ -v /app/nginx:/etc/nginx/conf.d/ --name nginx nginx4docker:latest
The configuration file of nginx is set to "/app/nginx"
The internal web data directory is set to "/var/www/html"
The port of service has been fixed at 80