Deploy Chevereto
Self-hosted image and video hosting with albums, users and direct links
Redis
Just deployed
/data
Chevereto
Just deployed
/var/www/html/images
Just deployed
/var/lib/mysql
Deploy and Host Chevereto on Railway
Chevereto is a self-hosted image and video hosting platform, like a private Imgur. People upload by drag and drop or from a URL, organise files in albums with tags, and share direct links, thumbnails and embed codes. This template deploys the free, open-source edition (AGPL-3.0), version 4.5.9, with user accounts and moderation tools.
About Hosting Chevereto
Chevereto is a PHP application served by Apache. It keeps uploads on disk and everything else in a MySQL-compatible database. This template runs three services on Railway's private network: Chevereto (the public web service, uploads on a volume), MariaDB 11.8 LTS (on its own volume) and Redis (cache and login sessions, so nobody is logged out when you redeploy). Passwords and Chevereto's encryption key are generated at deploy time, and the public domain is wired in automatically. You create the admin account yourself in the browser on first visit. Chevereto's scheduled jobs run inside the app service, and database migrations run on start after an update.
Common Use Cases
- A private image and screenshot host with direct links for chat, forums and documentation
- A small community or team gallery with user accounts, albums, likes and moderation
- A backend for ShareX-style uploads through Chevereto's API
Dependencies for Chevereto Hosting
- MariaDB 11.8 (bundled, own volume)
- Redis (bundled, Railway's Redis)
Deployment Dependencies
- Chevereto documentation
- Chevereto 4.5.9 release
- Official Docker image and Docker setup
- Template source
Implementation Details
After you deploy: open the Chevereto service's public URL. It goes to /install, where you choose the admin username, email and password. That account is the only admin; there is no default login. Then open the Dashboard to set the website name, registration rules and (optionally) SMTP for password-reset and sign-up emails.
Services:
- Chevereto: Apache + PHP 8.2 on port 8080, health check
/healthz(answers when PHP and the database are up). Uploads live on the volume at/var/www/html/images. - MariaDB: Chevereto's database, data on the volume at
/var/lib/mysql. Tuned to fit 0.5 GB of RAM. - Redis: cache and PHP sessions.
Limits: one upload may be up to 1 GB (CHEVERETO_MAX_UPLOAD_SIZE, CHEVERETO_MAX_UPLOAD_FILE_SIZE, CHEVERETO_MAX_POST_SIZE on the Chevereto service). Every service runs within 0.5 GB of RAM, so the template works on Railway's Free and Trial plans; give Chevereto 1 GB if many people upload large photos at the same time. Some features of the paid edition (external storage, custom pages, social login) are not in the free edition.
Custom domain: add it to the Chevereto service in Railway, then set CHEVERETO_HOSTNAME to that domain, because Chevereto builds its links from it.
Updates: the services build from the template's GitHub repo, which pins each image by version and digest. When we release a new version, Railway shows an update in your project; read the changelog in the repo first, then apply it. Chevereto applies its database migrations on the next start.
Why Deploy Chevereto 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 Chevereto 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.
Template Content
