Changes between Version 6 and Version 7 of NGINX HowTo Install Using Docker
- Timestamp:
- 10/05/16 16:03:33 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NGINX HowTo Install Using Docker
v6 v7 35 35 5. Create a directory /share/cert/live ensure the files .cer .csr .key already exist. If not read [[NGINX Generate SSL Certificate]] 36 36 37 5. Configure /share/nginx.conf as necessary to include files and other application forwards.37 6. Configure /share/nginx.conf as necessary to include files and set client direct requests to the appropriate backend webapps. 38 38 39 6. Build container39 7. Build container 40 40 41 41 {{{sudo docker build -t lcbruit/nginx_ssl:v1.1 .}}} … … 43 43 sudo docker run -d -p 80:80 -p 443:443 -e 'DH_SIZE=512' -v /share:/etc/nginx/external/ lcbruit/nginx_ssl:v1.1 44 44 45 7. To build the image :45 8. To build the image : 46 46 47 47 sudo docker build -t lcbruit/nginx_ssl:v1.1 . 48 48 49 8. To run the docker container :49 9. To run the docker container : 50 50 51 51 {{{sudo docker run -d -p 80:80 -p 443:443 -e 'DH_SIZE=512' -v /share:/etc/nginx/external/ lcbruit/nginx_ssl:v1.1}}} 52 52 53 9. Test Nginx :53 10. Test Nginx : 54 54 55 55 {{{http://XXXXXXXXXXXXXX.xuhl-tr.nhs.uk}}}