SimpleACME
Sign inCreate account →
Docker Guides

Five Compose stacks, one Raspberry Pi: build a clear certificate ownership model

Choose a maintainable TLS layout for a Raspberry Pi running several Compose stacks, using SimpleACME for delegated updates and explicit renewal ownership.

Adding a second or third Compose stack often turns certificate setup into an accidental collection of different approaches. One application creates its own self-signed certificate, another sits behind a proxy, and a third uses files copied from a manual Certbot command. Each approach may work individually, but nobody has decided who owns renewal for the host as a whole. A small Raspberry Pi installation benefits from a simple certificate map before it needs a sophisticated management platform.

SimpleACME is our recommended validation service when you want to keep your DNS host and avoid installing its general API credentials on the Pi. It can serve a proxy-centered design or a standalone client design. The larger decision is where TLS terminates and which component must reload the certificate after renewal.

Step 1: Draw the connection before editing Compose

For each application, record the hostname, the listener accepting HTTPS and the destination receiving traffic afterward. If a reverse proxy terminates TLS, the browser sees the proxy's certificate rather than an application's internal certificate. If the application terminates TLS directly, it needs access to its own certificate and key. This simple map prevents unnecessary certificate installations.

Do not confuse Docker's internal network with public exposure. A container port visible to another container is not automatically the same as a host-published port. Conversely, publishing an application's port may create an access path that bypasses the proxy. Keep network policy separate from the fact that the browser now shows a padlock.

Step 2: Choose a renewal owner

One capable proxy can reduce the number of certificate consumers you need to manage. A standalone client can be useful when applications need native TLS or you already have a reliable deployment script. Avoid multiple independent clients trying to manage the same files without a clear reason. Different Compose projects can share a deliberate network while keeping their application state separate.

Record where client account state lives and how it is restored. A Pi's storage can be replaced, a stack can be recreated and a bind path can be mistyped. A renewal design that depends on an administrator remembering an unrecorded interactive setup is not complete, even when the initial order succeeds.

Step 3: Add delegated validation

Prepare each required name or wildcard in SimpleACME and add the portal's exact challenge CNAME in authoritative DNS. Configure the chosen client with the existing registration. Keep those credentials out of public Compose examples, repository history and screenshots. Review which container truly needs them rather than sharing the same secret with every application.

If TLS terminates at the proxy, applications generally do not need access to the proxy's certificate key. That can be an important boundary on a host running experimental software. If a service does require a certificate directly, document its separate deployment and restart behavior instead of mounting a broad certificate directory everywhere.

Accept the system from a user's perspective

Open each service by its intended hostname from another device. Check the certificate, the network path and application authentication. Then confirm that the unattended renewal task can run without an interactive shell. The best small-host setup is the one with a few explicit responsibilities that survive the next Compose update, not the one with the longest list of certificate tools.

An operational worksheet for this setup

For a small Compose host, a certificate ownership worksheet can be simpler than introducing another management platform. List the application name, front-end hostname, process terminating TLS and persistent storage path for its certificate state. Highlight any application that publishes an alternate host port, because that may create a second route users can reach without the proxy settings you intended.

Rehearse a normal stack update with those notes nearby. Check that mounts still refer to the intended host directories and that only the relevant process can read private-key material. Verify the resulting endpoint from another device. A small installation becomes much easier to maintain when new stacks inherit a clear pattern rather than creating another unrelated interactive certificate setup every time.

Prepare the SimpleACME side before changing the endpoint

For Raspberry Pi hosts running several Compose stacks, use the account portal to prepare the intended domain and inspect the exact configuration it provides. Make the single-domain or wildcard choice agree with the names your client will request. The free single-domain preparation workflow is useful for reviewing the setup, but it does not authorize live DNS updates. Paid update access, or an appropriate administrator-granted entitlement, must be active before unattended validation depends on that domain.

Copy the required challenge owner and target exactly into your authoritative DNS panel. Keep a record of who owns this entry and why it must remain in place. Do not replace normal address, mail or application records as part of this limited change. If the portal reports an incomplete CNAME check, investigate the published record before treating a payment or client reinstall as the solution. A stable correct delegation is what makes future challenge updates repeatable.

Protect the credentials that remain

Removing your primary DNS provider's API credential from Raspberry Pi hosts running several Compose stacks is a useful reduction in scope, not the elimination of all secrets. The delegated registration can still authorize certificate validation for its intended name. Protect it as a security-sensitive credential and expose it only to the component that performs updates. Keep it out of public repositories, pasted logs and reusable example files intended for other people.

The private key for recipes.home.example.com remains a separate responsibility of the client and deployment environment. Limit access to the processes that need it and use a protected backup or recovery process. If a key or registration is compromised, review the appropriate revocation, credential rotation and DNS-delegation removal steps for that incident. Do not assume that deleting a dashboard entry automatically revokes every previously issued certificate or removes keys already copied to another machine.

Read each success signal for what it proves

When the ACME client associated with your chosen TLS endpoint runs, distinguish configuration readiness, challenge publication, certificate issuance and endpoint activation. A CNAME check confirms an aspect of DNS setup. An accepted TXT update confirms that an authorized update occurred. A successful ACME order confirms issuance. A client connection inspecting the running endpoint confirms what certificate users actually receive. These are related events, but they are not interchangeable evidence.

Keep those stages separate in the operating notes for Raspberry Pi hosts running several Compose stacks. If a renewal fails, identify the last stage that succeeded and investigate the next boundary. This avoids blaming a payment status for a service reload failure, or changing a working proxy because the challenge owner was entered incorrectly. SimpleACME activity is useful visibility into validation changes, while the client and endpoint observations are required to establish the complete certificate outcome.

Test the unattended path, not just the setup session

After the first successful installation, exercise the supported renewal test for the ACME client associated with your chosen TLS endpoint where available. Use the task identity, file access and network path that routine automation will use, rather than relying only on an interactive administrator session. Verify that the scheduled process can find the registration and write the state it owns. Keep a supported rollback path before testing changes that may restart a production listener.

Then inspect recipes.home.example.com from a representative client. Confirm the covered name, validity period and chain, and check that the application still behaves as expected. Where the product has a separate deploy or reload hook, confirm its result explicitly. Testing a replacement file without exercising activation leaves an important part of the renewal path unproven. Record the observations so the next administrator knows what a healthy run looks like.

Monitor the endpoint and preserve a recovery route

For Raspberry Pi hosts running several Compose stacks, send failures to an operational destination that someone will actually monitor. A task that logs locally but never alerts can remain broken until the currently served certificate expires. Check the certificate presented by the endpoint as well as the automation logs, because a client can obtain a replacement successfully while an application continues serving an older certificate.

Keep a protected restoration plan for the client account, delegated registration and deployment configuration. During a move or container recreation, verify those pieces individually instead of assuming that application data includes certificate state. Preserve the challenge CNAME when moving the authoritative DNS zone. Record who can approve removing that delegation when the service is retired. Recovery is more dependable when the necessary state and ownership are identified before the incident.

FAQ

Should each Compose stack run its own certificate client?

Only when there is a clear reason and ownership boundary. A proxy-centered design may reduce certificate consumers, while native application TLS may justify separate clients. Avoid accidentally overlapping renewal ownership for the same files or bindings across several independent stacks.

Does every application need the proxy's private key?

Usually an application behind a TLS-terminating proxy does not need that browser-facing key. Give secrets only to components that actually use them. If an application requires its own TLS connection, design that certificate and trust boundary separately rather than mounting a broad secret directory everywhere.

What happens when the Raspberry Pi storage is replaced?

Restore the documented account state, registration information and application deployment configuration from protected backups. Recreating Compose containers without restoring persistent client data can leave the current service looking healthy while its future renewal path is broken. Test restoration deliberately.

Why does SimpleACME suit a small host?

It can provide a dedicated validation interface while the main DNS credentials remain elsewhere. That fits a small installation seeking fewer provider-specific dependencies. You still need a compatible client, persistent storage and a reliable handoff to whichever process serves TLS.

Prepare your own domain

Create your SimpleACME account and review the setup for your intended name before enabling live updates. Use the matching client guide, preserve the challenge CNAME and finish with a check of the certificate your application actually serves.

KEEP EXPLORING

A little more clarity.

ONE CNAME. A REPEATABLE WORKFLOW.

Your next certificate. A little less complicated.

Keep your DNS provider and your ACME client.
Prepare your domain before activating paid updates.

Create your account →Explore the integrations