eugene-khyst / letsencrypt-docker-compose

Set up Nginx and Let’s Encrypt in less than 3 minutes with a Docker Compose project that automatically obtains and renews free Let's Encrypt SSL/TLS certificates and sets up HTTPS in Nginx for multiple domain names. Configuration is done using a simple CLI tool.
Apache License 2.0
473 stars 218 forks source link

Removing a domain #22

Closed verlor closed 2 years ago

verlor commented 2 years ago

Hi folks!

Thank you for sharing this amazing project.

When trying to remove a domain from my server I realized there was no explanation within the README file. It may be obvious for some people, but I think it would be nice to add a section to specify how to remove a domain. Something like :

Removing a domain name from a running solution

Remove the .conf file from vhost

Remove the domain name from config.env

docker compose down
docker volume rm nginx_conf
docker volume create --name=nginx_conf
docker compose up -d
verlor commented 2 years ago

Actually went ahead an made a pull request #23. Please let me know if there's any feedback. Thank you

eugene-khyst commented 2 years ago

@verlor, I merged your PR. Thanks you for contributing!