diff --git a/pages/installation/_meta.js b/pages/installation/_meta.js index 46c260f..bca1b2b 100644 --- a/pages/installation/_meta.js +++ b/pages/installation/_meta.js @@ -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" }; diff --git a/pages/installation/railway.mdx b/pages/installation/railway.mdx new file mode 100644 index 0000000..703c972 --- /dev/null +++ b/pages/installation/railway.mdx @@ -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'; + + + + + +
+ +## 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) + +
+
+ +### 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" + +```