Skip to content

Commit b94fb77

Browse files
authored
Merge pull request #11 from cancom/docs/init
docs: init
2 parents 129d970 + fb2bd74 commit b94fb77

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# nginx-acme
2+
3+
Automatically create and renew website SSL certificates using the
4+
[Let's Encrypt](https://letsencrypt.org/) free certificate authority.
5+
Built on top of the [official Nginx Docker images](https://github.com/nginxinc/docker-nginx) (Debian, Alpine (coming soon)).
6+
7+
> :information_source: Please use a specific tag.
8+
when doing a Docker pull, since `:latest` might not always be 100% stable.
9+
10+
# Acknowledgments and Thanks
11+
12+
This container requests SSL certificates from [Let's Encrypt](https://letsencrypt.org/), which they provide for the absolutely bargain price of free! If you like what they do, please [donate](https://letsencrypt.org/donate/).
13+
14+
# Usage
15+
16+
## Before You Start
17+
1. This guide expects you to already own a domain which points at the correct
18+
IP address, and that you have both port `80` and `443` correctly forwarded
19+
if you are behind NAT.
20+
```bash
21+
$ docker run --rm -it nginx-acme:latest manage-vhosts --find-my-ip
22+
Your public IP seems to be: 1.2.3.4
23+
You may point your (sub)domain to this IP.
24+
Your IP might be different in case you are using NAT or different internet gateway!
25+
It's just a best effort guess!
26+
````
27+
28+
2. It is probably not necessary to mention if you managed to find this
29+
repository, but you will need to have [Docker](https://docs.docker.com/engine/install/) installed for this to
30+
function.
31+
32+
## Volumes
33+
- `/acmecerts`: Stores the obtained certificates
34+
- TODO: add other volumes.
35+
36+
37+
## Run with `docker run`
38+
39+
```bash
40+
docker run -it -p 80:80 -p 443:443 \
41+
-v $(pwd)/certs:/acmecerts \
42+
--name nginx-acme cancomtest/nginx-acme:latest
43+
```
44+
45+
> :information_source: You should be able to detach from the container by holding `Ctrl` and pressing
46+
`p` + `q` after each other.
47+
48+
## Run with `docker-compose`
49+
50+
```bash
51+
$ docker-compose up -d
52+
```

0 commit comments

Comments
 (0)