Skip to content

railway documentation #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pages/installation/_meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ export default {
"docker": "Docker (standalone)",
"kubernetes-helm": "Kubernetes with Helm",
"development": "Development Environment",
"devcontainer": "Devcontainer"
"devcontainer": "Devcontainer",
"coolify": "Coolify",
"railway": "Railway"
};
55 changes: 55 additions & 0 deletions pages/installation/railway.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
title: Railway
description: How to install Postiz on Railway
---

import EarlyDoc from '../../components/snippets/earlydoc.mdx';
import Prereqs from '../../components/snippets/installation-pre-reqs.mdx';

<EarlyDoc />

<Prereqs />

<br />

## Create new Railway Project

Just click the button below and use the default settings to get started.

[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/template/xWx2v4?referralCode=chad)

<br />
<br />

### Environment Variables

The environment variables should be already set up in the template, only listing here for reference.

```env
PORT="5000" # instructs railway to connect the public domain to port 5000
IS_GENERAL="true"
SKIP_CONFIG_CHECK="true"
DATABASE_URL="${{Postgres.DATABASE_URL}}"
REDIS_URL="${{Redis.REDIS_URL}}?family=0" # the ?family=0 is to necessary for bullqueue to connect to redis via ipv6
JWT_SECRET="replace me with a long random string"
NODE_ENV="production"
BACKEND_INTERNAL_URL="http://localhost:3000"

NEXT_PUBLIC_UPLOAD_STATIC_DIRECTORY="/uploads"
NEXT_PUBLIC_UPLOAD_DIRECTORY="/uploads"
UPLOAD_DIRECTORY="/uploads"
STORAGE_PROVIDER="local"

NEXT_PUBLIC_BACKEND_URL="https://${{RAILWAY_PUBLIC_DOMAIN}}/api"
# use this if you have a custom domain
# NEXT_PUBLIC_BACKEND_URL="https://postiz.example.com/api"

FRONTEND_URL="https://${{RAILWAY_PUBLIC_DOMAIN}}"
# use this if you have a custom domain
# FRONTEND_URL="https://postiz.example.com"

MAIN_URL="https://${{RAILWAY_PUBLIC_DOMAIN}}"
# use this if you have a custom domain
# MAIN_URL="https://postiz.example.com"

```