Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/paulo-correia/docker_apache_ssl

Apache SSL on Docker
https://github.com/paulo-correia/docker_apache_ssl

alpine apache docker dockerfile ssl

Last synced: 16 days ago
JSON representation

Apache SSL on Docker

Awesome Lists containing this project

README

        

# Apache SSL on Docker (Alpine Linux Image)

## Save Dockerfile on a folder Ex: Apache
**Caution: Only one dockerfile per folder**

### Generate image

docker build -t `` .

`` = Ex: apache or your_docker_hub_name/apache:1.0

### Running Container

docker run -d -p ``:80 -p ``:443 ``

`` = Ex 8080

`` = Ex 8443

### If don't generate image, get from docker hub

docker run -d -p ``:80 -p ``:443 paulocorreia/alpine_apache_ssl:1.0

### Open Browser
`http://localhost:`

`https://localhost:`

If `` is 80 you can omit

If `` is 443 you can omit

If you see "It works on Docker SSL!" is OK

Download certificate

`http://localhost:/localhost.crt`

To correct the certificate on your browser import localhost.crt on Ceriticates - Authorities

Close the tab or browser reopen `https://localhost:` and you see "It works on Docker SSL!" is OK