Deploy Flowise + Postgres
Flowise with Postgres, persistent storage, and private networking.
postgres
Just deployed
/var/lib/postgresql/data
flowise
Just deployed
/root/.flowise
Flowise + Postgres Railway Template
This folder tracks a production-minded Flowise template for Railway.
Stack
- Flowise via the official Docker image
- PostgreSQL on a private Railway service
- Persistent volume for Flowise local storage and credential key material
- Persistent volume for Postgres data
- Railway public domain for the Flowise UI
Why This Template Should Convert
- Flowise already has strong Railway marketplace demand, but the existing popular template has poor recent deploy success.
- The app is sticky: users store chatflows, credentials, documents, and agent workflows.
- Postgres plus persistent storage makes it safer than the simple SQLite starter pattern.
- The deploy surface is still small: one app service, one database, no custom source needed.
Runtime Shape
flowise- Image:
flowiseai/flowise:latest - Public domain on port
3000 - Volume mounted at
/root/.flowise
- Image:
postgres- Image:
postgres:16-alpine - Private only
- Volume mounted at
/var/lib/postgresql/data
- Image:
Key Variables
Flowise:
PORT=3000APP_URL=https://${{RAILWAY_PUBLIC_DOMAIN}}DATABASE_TYPE=postgresDATABASE_HOST=postgres.railway.internalDATABASE_PORT=5432DATABASE_NAME=flowiseDATABASE_USER=flowiseDATABASE_PASSWORD=DATABASE_SSL=falseSTORAGE_TYPE=localBLOB_STORAGE_PATH=/root/.flowise/storageSECRETKEY_STORAGE_TYPE=localSECRETKEY_PATH=/root/.flowiseFLOWISE_SECRETKEY_OVERWRITE=FLOWISE_USERNAME=FLOWISE_PASSWORD=JWT_AUTH_TOKEN_SECRET=JWT_REFRESH_TOKEN_SECRET=EXPRESS_SESSION_SECRET=
Postgres:
POSTGRES_DB=flowisePOSTGRES_USER=flowisePOSTGRES_PASSWORD=PGDATA=/var/lib/postgresql/data/pgdata
Notes
- Keep Flowise as a single app instance unless the template is later reworked for shared object storage and queue mode.
- The first deployer should change the generated Flowise username/password after deployment.
- Model provider API keys are intentionally not bundled. Users should add them inside Flowise or as Railway variables.
Template Content
postgres
postgres:16-alpinePOSTGRES_PASSWORD
flowise
flowiseai/flowise:latestFLOWISE_PASSWORD
FLOWISE_USERNAME
JWT_AUTH_TOKEN_SECRET
EXPRESS_SESSION_SECRET
JWT_REFRESH_TOKEN_SECRET
FLOWISE_SECRETKEY_OVERWRITE
