OPERATING SYSTEMSOS Linux

How to setup Docker Nginx Reverse Proxy and Lets encrypt #shorts #docker #shortsvideo #learn

How to set #Docker #Nginx reverse proxy and Let’s encrypt so that all websites route using ports 80 and 443 and all websites that are hosted in Docker containers have valid SSL this a #short quick #howto

If you want to learn iT Technologies, be sure to follow, because there will be more videos

For Nginx reverse proxy Docker container:
docker run
-d -p 80:80 -p 443:443
–name=nginx-proxy –restart=always
-v /home/docker/containers/management/nginx:/etc/nginx/conf.d
-v /home/docker/containers/dhparam:/etc/nginx/dhparam
-v /home/docker/containers/management/vhost.d:/etc/nginx/vhost.d
-v /home/docker/containers/management/html:/usr/share/nginx/html
-v /home/docker/containers/management/certs:/etc/nginx/certs
-v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy

Check for Docker containers
docker ps -a

For Let’s encrypt docker container:
docker run
–detach
–name nginx-proxy-letsencrypt
–restart=always
-v /home/docker/containers/management/dhparam:/etc/nginx/dhparam
-v /home/docker/containers/management/vhost.d:/etc/nginx/vhost.d
-v /var/run/docker.sock:/tmp/docker.sock
-v /home/docker/containers/management/html:/usr/share/nginx/html
-v /home/docker/containers/management/certs:/etc/nginx/certs
-v /home/docker/containers/management/nginx:/etc/nginx/conf.d
–volume /var/run/docker.sock:/var/run/docker.sock:ro
–env “DEFAULT_EMAIL=myssls@valters.eu”
–env “NGINX_PROXY_CONTAINER=nginx-proxy”
jrcs/letsencrypt-nginx-proxy-companion

Website: https://www.valters.eu
Twitter: https://twitter.com/valters_eu

#youtube #ubuntu #shorts #it #learning #nginx #letsencrypt #devops #devsecops #developers #kubernetes #howto #learning #technology #linux #ubuntu #developers #development #developer #100dayschallenge

source

ubuntu