docker-compose: command not found

orlandobuzana
HOBBY

16 days ago

im tired and i apologize for the lack of details but yeah...

$10 Bounty

3 Replies

Railway
BOT

16 days ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


16 days ago

Hello,

We do not support docker compose, I will go ahead and open this thread up to the community so that they may be able to help you, though you will need to provide more details on what you are trying to deploy.


Status changed to Awaiting User Response Railway 16 days ago


luksuz
HOBBY

15 days ago

Railway doesn’t support docker-compose, which is why you’re getting the command not found error. Instead, you’ll need to use a single Dockerfile for your service. Make sure the file is literally named Dockerfile (with a capital D and no extension), since Railway looks for that when building your project.

So the steps are basically:

  1. Take the service you want to deploy from your docker-compose.yml.

  2. Write a Dockerfile for it.

  3. Deploy that directly to Railway.

    NOTE: if you have multiple Dockerfiles for each of the service, make sure you specify the dockerfile path in the project env variable named RAILWAY_DOCKERFILE_PATH

If you had multiple services in your compose file, you’d need to create a separate Railway project (or service) for each one.