---
title: "Deploy Plik"
description: "Temporary file sharing like WeTransfer: login required, files on a volume"
category: "Other"
url: https://railway.com/deploy/plik
---

# Deploy Plik

Temporary file sharing like WeTransfer: login required, files on a volume

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

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

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### Plik https://raw.githubusercontent.com/aalfath/plik-railway-template/eb556ad627db271334c22f564020b58d8e6f1207/icon.png

- **Source:** https://github.com/aalfath/plik-railway-template
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# Deploy and Host Plik on Railway

Plik is a self-hosted temporary file upload and sharing system, like WeTransfer. You drop files in the web page or send them from the command line, and Plik gives you a link to share. Uploads expire on their own, and can be one-shot, streamed, password-protected or end-to-end encrypted.

## About Hosting Plik

This template runs Plik 1.4.3 from the official `rootgg/plik` image as one Railway service, built from a public GitHub repo so you get update notices. Uploaded files and Plik's SQLite metadata database both live on a Railway volume at `/data`, so they survive restarts and redeploys. Sign-in is required to upload: an `admin` account is created on the first boot with a generated password, so strangers who find your URL can only download links you share. Defaults are 1 GB per file, 7-day default expiry and 30-day maximum. Plik needs very little memory: uploads stream straight to disk.

## Common Use Cases

* Send large files to clients or colleagues without a third-party transfer service
* Share logs, screenshots and builds from scripts or CI with the `plik` command-line client
* Give a team a private drop point for files that should disappear after a set time

## Dependencies for Plik Hosting

* A Railway volume for uploaded files and the SQLite database (included)
* Nothing else: no external database, cache or mail server is needed

### Deployment Dependencies

* Plik source and releases: https://github.com/root-gg/plik
* Plik documentation: https://root-gg.github.io/plik
* Template repo: https://github.com/aalfath/plik-railway-template

### Implementation Details

**Services.** One service, `Plik`: the Plik server (web interface, API and download links) on port 8080, health check `/health`, volume at `/data`.

**After deploy.** Open the service's public URL and sign in as `admin` with the password in the service's `PLIKD_DEFAULT_ADMIN_PASSWORD` variable (Variables tab). Then create accounts for other people in Admin → Users, or let them use API tokens with the CLI. The password variable only seeds the first boot: changing it later does not change the existing account.

**Settings.** Any Plik setting can be changed with a `PLIKD_` variable on the service, named after the key in `plikd.cfg` in upper snake case. For example `PLIKD_MAX_FILE_SIZE_STR=5GB`, `PLIKD_DEFAULT_TTL_STR=24h`, `PLIKD_MAX_TTL_STR=0` (no limit) or `PLIKD_FEATURE_AUTHENTICATION=default` (allow anonymous uploads, not recommended on a public URL). Google, GitHub or OIDC sign-in and S3 storage are optional and set the same way. Grow the volume in Railway if you expect many large files.

**Updates.** The service builds from https://github.com/aalfath/plik-railway-template. When we move it to a new Plik release, Railway shows an update notice on your project; read the repo's `CHANGELOG.md`, then apply it when you choose. Your files and accounts stay on the volume.

## Why Deploy Plik on Railway?


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 Plik 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.



## 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)
- [Double Commander in your browser](https://railway.com/deploy/double-commander-in-your-browser) — The Double Commander file manager in the cloud, from any device

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