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: 10 months ago
JSON representation
Apache SSL on Docker
- Host: GitHub
- URL: https://github.com/paulo-correia/docker_apache_ssl
- Owner: paulo-correia
- Created: 2020-05-05T20:57:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-05T21:03:07.000Z (about 6 years ago)
- Last Synced: 2025-03-15T10:09:27.005Z (over 1 year ago)
- Topics: alpine, apache, docker, dockerfile, ssl
- Language: Dockerfile
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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