---
title: "Deploy Artifact Keeper"
description: "Self-hosted registry for Docker, npm, PyPI, Maven and 40+ formats"
category: "Other"
url: https://railway.com/deploy/deploy-artifact-keeper-artifact-registry
---

# Deploy Artifact Keeper

Self-hosted registry for Docker, npm, PyPI, Maven and 40+ formats

**[Deploy Artifact Keeper on Railway](https://railway.com/template/deploy-artifact-keeper-artifact-registry)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/deploy-artifact-keeper-artifact-registry/manifest.json

- **Creator:** onepush
- **Category:** Other

## Template content

### artifact-keeper https://api.iconify.design/mdi/package-variant-closed.svg

- **Image:** ghcr.io/onepush-dev/artifact-keeper-proxy:1.12.4
- **Health check:** /proxyhealth
- **Public domain:** Yes

### web https://api.iconify.design/mdi/monitor-dashboard.svg

- **Image:** ghcr.io/onepush-dev/artifact-keeper-web:1.12.1

### backend https://api.iconify.design/mdi/server-network.svg

- **Image:** ghcr.io/onepush-dev/artifact-keeper-backend:1.12.4
- **Health check:** /health

### postgres https://devicons.railway.app/postgresql

- **Image:** postgres:18-alpine

## Documentation

# Deploy and Host self hosted Artifact Keeper (Other) on Railway

Artifact Keeper is an open-source, self-hosted universal artifact registry for Docker and OCI images, npm, PyPI, Maven and other package formats.

## About Hosting Artifact Keeper open-source software on Railway (self hosted Artifact Keeper template)

This template deploys Artifact Keeper as four Railway services: a public Caddy proxy that routes traffic, a private backend, a private web UI, and a private postgres:18-alpine database.

## Why Deploy Artifact Keeper, the self-hosted universal artifact registry on Railway

A hosted artifact registry keeps your packages on someone else's servers and often limits how you run the service.

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Artifact Keeper on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

### Railway vs Other Hosting Providers and VPS for Artifact Keeper self hosting

Here is how self-hosted Artifact Keeper compares on Railway versus other providers.

| Provider | What You Get with Railway | What You Get with the Other Provider |
|---|---|---|
| DigitalOcean | Four services deployed from one template with no inputs, plus persistent volumes for the backend and Postgres. | A virtual machine you configure yourself, including Docker, networking, firewall and storage. |
| AWS | The full stack wired over Railway's private network, with no VPC or IAM setup first. | Broad networking and storage control, but you assemble compute, database and storage before Artifact Keeper runs. |
| Hetzner | Usage-based hosting with the proxy, backend, web and Postgres already connected. | Low-cost servers where you handle the operating system, container runtime and the full stack. |

## Common Use Cases for hosted Artifact Keeper

- **Private container registry for your team:** Push and pull Docker and OCI images through one domain, then run docker login against your own host instead of a public registry.
- **Caching proxies for upstream package sources:** Set up remote repositories so npm, PyPI, Maven and Cargo installs go through your instance first, which keeps builds working when an upstream source is slow.
- **One entry point with virtual repositories:** Combine local and remote repositories into a single virtual path so developers configure one URL for Helm charts, Go modules or NuGet packages.
- **Access control with tokens and audit:** Issue API tokens to CI jobs and people, and review who uploaded or downloaded what from the audit trail.
- **A web UI on the same URL:** Browse repositories, check artifacts and manage users from the web interface served by the public domain, without a separate admin server.

## Dependencies for Artifact Keeper Docker hosted on Railway

This template runs four services on one private network behind a single public proxy.

### Deployment Dependencies for Managed Artifact Keeper Service

The public artifact-keeper proxy listens on port 8080 and checks /proxyhealth with a 300 second timeout and restart Always. The private backend listens on 8080 with a volume at /data and health check /health. The private web UI listens on 8080. Private postgres:18-alpine (not a managed plugin) listens on 5432 with a volume at /var/lib/postgresql and restart On Failure. Keep one replica for backend and postgres.

### Implementation Details for Artifact Keeper

The public service is Caddy 2.11.9 with upstream Caddyfile routes from 1.12.4. The backend image ghcr.io/onepush-dev/artifact-keeper-backend:1.12.4 is the unmodified upstream backend 1.12.4 image, running as root so the Railway volume is writable. The web image is the unmodified upstream web 1.12.1 image. Artifacts live at /data/storage on the backend volume. Optional OpenSearch, Trivy, OpenSCAP and Dependency-Track services are not included, so search indexing and vulnerability scanning are off. /metrics is not exposed through the proxy. Sign in as admin with the generated backend ADMIN_PASSWORD. Update CORS_ORIGINS if you add a custom domain. Generated values also include DATABASE_URL, JWT_SECRET, AK_WEBHOOK_SECRET_KEY, web BACKEND_URL and postgres POSTGRES_PASSWORD.

## How does Artifact Keeper compare against other tools

### Artifact Keeper vs a hosted artifact registry (Hosted Artifact Registry Alternative)

- **Control of data:** Artifact Keeper stores artifacts on the backend volume at /data/storage in a deployment you own.
- **Format coverage:** Artifact Keeper handles Docker and OCI images, npm, PyPI, Maven, Cargo, Helm, Go and many other formats behind one URL.
- **Hosted convenience:** A hosted registry usually needs less setup and no volume sizing, so it is the easier pick if you do not want to run anything yourself.
- **Feature scope:** Optional OpenSearch search and Trivy or OpenSCAP scanning are not included in this template, so confirm the features you need first.

### Artifact Keeper vs keeping packages only on a file share (File Share Alternative)

- **Access control:** Artifact Keeper provides admin sign-in, API tokens and audit, while a file share relies on filesystem permissions that rarely track who published what.
- **Client compatibility:** Package managers such as npm, pip, Maven and docker login speak their own protocols, and Artifact Keeper serves them directly.
- **Simplicity:** A file share is quicker to set up for a few files and has no service to run, so it suits small, informal sharing.

### Artifact Keeper with Docker vs Railway (Docker Hosting Comparison)

- **Who runs it:** Docker on your own host means you manage TLS and upgrades yourself, while Railway runs the four services from this template for you.
- **Configuration:** Railway generates the admin password, JWT secret and webhook key per deploy and wires the private network, saving manual setup.
- **Persistence:** Local Docker keeps data wherever you mount it, while Railway attaches volumes to the backend and postgres services, each kept at one replica.

## How to use Artifact Keeper on Railway?

1. Open the public domain for the artifact-keeper service in your browser. The web UI loads through the proxy.
2. Sign in as `admin`. The password is the `ADMIN_PASSWORD` value from the backend service's Variables tab.
3. Create a repository for the package format you need, such as a Docker, npm, or PyPI repository.
4. Point your clients at the format paths on your domain. For example, run `docker login your-domain` for container images, or use `https://your-domain/npm/repo/` for npm.
5. Size the backend volume for the packages you plan to store, since artifacts live on the backend volume at `/data/storage`.
6. Keep one replica for backend and postgres, because both use local persistent volumes.
7. Confirm the public service health check at `/proxyhealth` is passing before you rely on the registry, and update CORS_ORIGINS if you attach a custom domain.

## How to self host Artifact Keeper on other VPS Services (Artifact Keeper self hosting guide)

### Clone the Repository

Clone the upstream repository and check out the 1.12.4 release so the code matches the images this template uses.

```bash
git clone https://github.com/artifact-keeper/artifact-keeper.git
cd artifact-keeper
git checkout v1.12.4
```

### Install Dependencies

Install Docker and the Docker Compose plugin on your VPS.

### Configure Environment Variables

Create an environment file with your own generated secrets.

```bash
export DATABASE_URL="postgresql://postgres:your-db-password@postgres:5432/postgres"
export JWT_SECRET="your-long-random-secret"
export ADMIN_PASSWORD="your-admin-password"
export CORS_ORIGINS="https://your-domain"
```

### Start the Artifact Keeper Application

Run the documented upstream artifact-keeper stack with backend, web, a reverse proxy and Postgres, plus persistent storage; see the upstream repository.

## Pricing and License of Artifact Keeper (Artifact Keeper pricing)

Artifact Keeper is MIT-licensed open-source software, so you can self-host it without paying a license fee.

## Artifact Keeper hosted vs self hosted comparison (Pricing, features, costs, and more)

This template packages the MIT licensed Artifact Keeper software. No hosted artifact-registry plan prices are quoted here.

### Monthly cost of self hosting Artifact Keeper on Railway

Railway bills by usage, so your monthly cost depends on the RAM and CPU the four services use, how large the backend volume grows, and how long the services run.

### System Requirements for Hosting Artifact Keeper on a VPS

A VPS needs memory and CPU for the backend, web UI, Caddy proxy and Postgres, plus disk for stored artifacts.

## Frequently Asked Questions (FAQs)

### How do I sign in to Artifact Keeper after deploying?

Sign in as `admin` using the `ADMIN_PASSWORD` value shown in the backend service's Variables tab.

### Which versions does this template ship?

The public proxy and backend run Artifact Keeper 1.12.4, and the web UI runs 1.12.1.

### Are vulnerability scanners included?

No. Upstream optional OpenSearch, Trivy, OpenSCAP and Dependency-Track services are not part of this template.

### Where are my artifacts stored?

Artifacts are written to the backend volume at `/data/storage`.

### What should I back up?

Back up the backend `/data` volume, the postgres volume at `/var/lib/postgresql`, and the `JWT_SECRET` and `AK_WEBHOOK_SECRET_KEY` values.

### Is this affiliated with or endorsed by Artifact Keeper?

No. This is independent community packaging of artifact-keeper/artifact-keeper (MIT, Copyright 2026 Brandon Geraci), not affiliated with or endorsed by Artifact Keeper. JFrog and Artifactory are trademarks of JFrog Ltd and are named only descriptively.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Wiki-Go](https://railway.com/deploy/wiki-go) — Flat-file Markdown wiki in Go: no database, generated admin login

Open this page in a browser: https://railway.com/deploy/deploy-artifact-keeper-artifact-registry
