How to deploy using docker-compose
mooyg
OP

2 years ago

I have a repo in which I have a docker compose file can I use it to deploy? If so how and where can I read about it

Closed

11 Replies

2 years ago

Google is a very helpful tool! This was the first result when I searched “Railway Docker Compose” https://docs.railway.com/guides/dockerfiles#docker-compose


mooyg
OP

2 years ago

Yes

You can import services straight from your Docker Compose file! Just drag and drop your Compose file onto your project canvas, and your services (and any mounted volumes) will be auto-imported as staged changes. It’s like magic, but with YAML instead of wands. 🪄

A quick heads-up: we don’t support every possible Compose config just yet (because Rome wasn’t built in a day). But don’t worry, we’re on it!

Although this isn't a good doc


mooyg
OP

2 years ago

😄


2 years ago

Is that not what you’re looking for? That looks like a solution to me.


mooyg
OP

2 years ago

don't think so it works for building docker files mentioned within compose am I correct?


2 years ago

Have you tried it yet? I don’t know the specifics of how the import process works.


mooyg
OP

2 years ago

yea, seems to be like it doesn't 😄


mooyg
OP

2 years ago

Do these have any extra cost?

1365312334956068974


2 years ago

Do what? Replicas? Regions? Resource limits?


2 years ago

Replicas are copies of your existing app. They effectively multiply the spend of your service by the number of replicas you have


2 years ago

you should not use replicas unless you know you need them


Welcome!

Sign in to your Railway account to join the conversation.

Loading...