Skip to content

About

Deploy Registreasy, a self-hosted Docker image registry, on Render

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Registreasy on Render

Deploy Registreasy, a self-hosted Docker image registry with a push user, a pull user and a web page that lists your images, on Render with a persistent disk.

Deploy to Render

What this creates

The Blueprint creates a registreasy project with a production environment:

Resource Type Plan Notes
registreasy Web service (prebuilt image) Starter Runs ghcr.io/dellarb/registreasy:0.1
registry-data Persistent disk, 20 GB Mounted at /data
registreasy-settings Environment group Passwords and settings

Registreasy runs the CNCF Distribution registry behind Nginx in one container. Image layers, the web page's settings and the registry's upload secret live on the disk, so they survive deploys and restarts. Render terminates TLS, so Docker clients talk to the registry over HTTPS with no insecure-registries setting.

Deploy

  1. Click Deploy to Render above, or create a Blueprint in the Render Dashboard that points at this repository.

  2. When the deploy is live, open the registreasy-settings environment group in the Render Dashboard and copy the generated PUSH_PASSWORD and PULL_PASSWORD.

  3. Push an image. Replace <your-service> with your service's hostname:

    docker login <your-service>.onrender.com -u push
    docker pull alpine:3.22
    docker tag alpine:3.22 <your-service>.onrender.com/example/alpine:demo
    docker push <your-service>.onrender.com/example/alpine:demo
  4. Pull it from another machine with the pull user:

    docker login <your-service>.onrender.com -u pull
    docker pull <your-service>.onrender.com/example/alpine:demo

    Docker keeps one login per hostname, so a push login and a pull login on the same machine replace each other.

  5. Open https://<your-service>.onrender.com and sign in to see your images. The push user can delete tags and run garbage collection under Settings.

Configuration

Change settings in the registreasy-settings environment group. The service restarts when you save.

Variable Default here Meaning
PUSH_PASSWORD generated Password for the push user. Required
PULL_PASSWORD generated Password for the pull user. Delete it to allow anonymous pulls
PUSH_USERNAME / PULL_USERNAME push / pull Account names
REQUIRE_HTTPS 0 Keep 0 on Render. See below
TZ UTC Timezone for the daily garbage collection window

See the Registreasy README for the other settings.

Why REQUIRE_HTTPS stays at 0

Registreasy accepts plain HTTP only from private addresses. For public use, its README says to set REQUIRE_HTTPS=1 and TRUSTED_PROXY to the TLS proxy's IP. Render's proxy has no single fixed IP, so don't set TRUSTED_PROXY. With it unset, Registreasy trusts forwarding headers from private addresses, which include Render's proxy. It then sees the real client address and that the client used HTTPS. Render already redirects plain HTTP to HTTPS, so no password crosses the internet unencrypted.

Other services on your Render private network can reach the registry over plain HTTP at registreasy:5000, because their addresses are private.

Limitations

  • A persistent disk attaches to one instance, so the service can't scale to more than one instance.
  • Render stops the old instance before it starts the new one, so each deploy has a few seconds of downtime.
  • Garbage collection closes the registry for up to GC_TIMEOUT_SECONDS (default 900). The Blueprint sets no health check path, so Render doesn't restart the instance while collection runs.
  • Registreasy logs and rate-limits by the address of Render's edge proxy, not the real client address, because it only trusts forwarding headers from private addresses. HTTPS detection is not affected. Failed sign-ins still lock the targeted account after repeated attempts.
  • Images use disk space until you delete tags and run garbage collection. Render can grow a disk but can't shrink it.

Backups

Render takes daily disk snapshots. See maintenance and recovery for Registreasy's own backup advice.

Upgrades

The 0.1 image tag points at the newest 0.1.x patch release. Render pulls the tag again when you deploy, so trigger a manual deploy of the registreasy service to pick up a patch release. To move to a new minor version, change the tag in render.yaml and push. Read the release notes first.

About

Deploy Registreasy, a self-hosted Docker image registry, on Render

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors