20 days ago
Im just starting with Railway, Can anyone guide me how to combine all three and deploy? or i needed to create a docker compose for this combination. My app mostly sends a lot of request to db, so i wanted to add a redis before that to reduce the db load
1 Replies
19 days ago
Hey! You can deploy the Redis and Postgres instances directly on Railway! Do you already have a project? You can right-click the canvas, go to database, and select which one you want to deploy.
Now for your code, you can use the CLI or link your GitHub account (easiest) to directly deploy a repo.
After having deployed everything, it's just a matter of configuration - you can connect to your databases using their provided environment variables in your Express app!
I'm also going to link some docs for you to read.
A quick start one to get you going: https://docs.railway.com/quick-start
DB docs page: https://docs.railway.com/guides/postgresql and https://docs.railway.com/guides/redis