---
title: "Deploy peek"
description: "Self-hosted public URLs for localhost."
category: "Automation"
url: https://railway.com/deploy/peek
---

# Deploy peek

Self-hosted public URLs for localhost.

**[Deploy peek on Railway](https://railway.com/template/peek)**

- **Creator:** Sasi's Projects
- **Category:** Automation

## Template content

### peek:latest https://devicons.railway.app/relay

- **Image:** ghcr.io/sasicodes/peek:latest
- **Public domain:** Yes

## Documentation

# Deploy and Host

`peek` gives your local server a public URL through your own hosted relay.

This template deploys the peek relay on Railway. After deploy, add your domain and wildcard domain, then use the peek CLI to expose a local app.

## About Hosting

Set `PEEK_DOMAIN` to your domain, without `https://`.

Example:

`example.link`

Add both domains to the Railway service:

`example.link`  
`*.example.link`

Then add the DNS records Railway gives you.

## Why Deploy

Deploying the relay gives you your own public tunnel server. Your local machine connects to it with the peek CLI, and public visitors use generated URLs like:

`https://{random}.example.link`

## Common Use Cases

- Share a local web app demo
- Test webhooks against localhost
- Create temporary preview URLs
- Expose personal apps through your own domain

## Dependencies for

The peek CLI runs on your local machine:

`peek localhost:3000 --domain  --token `

GitHub: https://github.com/sasicodes/peek

### Deployment Dependencies

- HTTP Proxy on port `8080`
- `PEEK_DOMAIN`
- `PEEK_AUTH_TOKEN`
- A domain and wildcard domain pointed to Railway

## Similar templates

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — [Jul'26] WhatsApp automation platform using Evolution API, n8n & PostgreSQL
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

Open this page in a browser: https://railway.com/deploy/peek
