Sign inSign up

gilangvperdana/ssl

By gilangvperdana

•Updated over 5 years ago

Repository for web deployment with SSL.

Image
1

333

gilangvperdana/ssl repository overview

⁠Please check tag before pull.

⁠How to Deploy?

$ docker run -d -p 80:80 -p 443:443 gilangvperdana/ssl:tag

⁠How to make a Certificate?

for nginx tag:
Deploy image first then go inside to the container:
$ docker exec -it container_id bash
$ certbot --nginx -d domain.com -d www.domain.com

for apache2 tag:
Deploy image first then go inside to the container:
$ docker exec -it container_id bash
$ certbot --apache

#container_id can be seen from $ docker ps

⁠Directory of HTML for nginx tag.

HTML is on /var/www/html/
you can run your image first then copy your HTML to WOKDIR:
$ docker cp ./ container_id:/var/www/html/

#before overwriting the new html, make sure you have removed the default index.html created by nginx by going into the container and deleting the default index.html.
How to get into the active container:
$ docker exec -it container_id bash

How to delete index.html default:
make sure you are logged into the active nginx+ssl container.
$ rm /var/www/html/index.nginx-debian.html

#container_id can be seen from $ docker ps

⁠Directory of HTML for apache2 tag.

HTML is on /var/www/html/
you can run your image first then copy your HTML to WOKDIR:
$ docker cp ./ container_id:/var/www/html/

#before overwriting the new html, make sure you have removed the default index.html created by nginx by going into the container and deleting the default index.html.
How to get into the active container:
$ docker exec -it container_id bash

How to delete index.html default:
make sure you are logged into the active apache2+ssl container.
$ rm /var/www/html/index.html

#container_id can be seen from $ docker ps

⁠HTTPS on Local IP:

if you want to try using an HTTPS connection on a local network (local ip), you can pull the image with the "private" tag prefix in this repository.

⁠Access on:

https://localhost

Tag summary

Content type

Image

Digest

Size

111.5 MB

Last updated

over 5 years ago

docker pull gilangvperdana/ssl:private-nginx