NextcloudPi Docker with Let's Encrypt - can I use SSL for other containers?

Hi,

I have a NCP docker running on my machine. I configured the service of let’s encrypt to access the Nextcloud securely with https and it’s working great.

I also have other docker containers running on the same machine, example Home Assistant, and I want to be able to access those also with https though on a different port.

Can I use the same let’s encrypt certificates done inside NCP to access via https the services on other containers?

Example of access services running on the same machine:
https://my-domain.com → accesses Nextcloud (ports 443, and 80)
https://my-domain.com:8123 → accesses Home Assistant
https://my-domain.com:1234 → accesses another docker container service in same machine

Would this be possible?

/Daniel

Hi Daniel
Should be fine to use same certificate

confirmed that it works to re-use the same certificate to other services.