16f55b556b3dfba97e9213b755e7a44d397af30d
haproxy-letsencrypt-docker.md
| ... | ... | @@ -301,10 +301,12 @@ Run `docker-compose up` to bring up haproxy and the letsencrypt container. certb |
| 301 | 301 | haproxy should start up and tell you nice things about the letsencrypt backend being available. |
| 302 | 302 | |
| 303 | 303 | # Add (or remove) domains and containers |
| 304 | -You're on your own with the container, but haproxy and certbot config we can do |
|
| 304 | +You're on your own with the container, but haproxy and certbot config we can do. |
|
| 305 | 305 | |
| 306 | +## DNS |
|
| 306 | 307 | Make sure the new domain's A record is pointing at haproxy's IP. |
| 307 | 308 | |
| 309 | +## haproxy |
|
| 308 | 310 | Add the new domain to haproxy.conf: |
| 309 | 311 | ```text |
| 310 | 312 | ... |
| ... | ... | @@ -316,8 +318,10 @@ backend new-container |
| 316 | 318 | server new-container1 new-container:6666 resolvers docker check |
| 317 | 319 | ``` |
| 318 | 320 | |
| 319 | -Bring up the new container. |
|
| 321 | +## Container |
|
| 322 | +Bring up the new container if it's not already running. |
|
| 320 | 323 | |
| 324 | +## letsencrypt |
|
| 321 | 325 | Log into the letsencrypt container: |
| 322 | 326 | `docker exec -ti letsencrypt bash` |
| 323 | 327 |