Deploy using docker-compose
mohcine50
HOBBYOP

a year ago

I am encountering problems deploying a docker-compose setup on Railway. The deployment fails during the build

Solved

30 Replies

mohcine50
HOBBYOP

a year ago

N/A


brody
EMPLOYEE

a year ago

docker-compose is only going to work for compose files that deploy from images, if your compose file deploys from Dockerfiles you would need to manually deconstruct it into separate railway services.



mohcine50
HOBBYOP

a year ago

can it be deployed on railway ?


brody
EMPLOYEE

a year ago

gotcha, all images, images don't have build steps, I'm not sure how it's failing during build if there isn't a build


brody
EMPLOYEE

a year ago

please elaborate


mohcine50
HOBBYOP

a year ago

It crashes on the first two second said that the build failed.


mohcine50
HOBBYOP

a year ago

I didn’t find any doc about this one ? Or I didn’t see it


brody
EMPLOYEE

a year ago

what error did it fail with?


mohcine50
HOBBYOP

a year ago

1321480753418342400


brody
EMPLOYEE

a year ago

ah I see now, you are trying to deploy a repo, not a docker compose file


brody
EMPLOYEE

a year ago

you simply drag and drop the compose file onto the canvas


mohcine50
HOBBYOP

a year ago

The data , connect, server are generated , can I edit them directly from railway?


brody
EMPLOYEE

a year ago

yes of course


mohcine50
HOBBYOP

a year ago

How !?


brody
EMPLOYEE

a year ago

the same way you edit any other service in railway


mohcine50
HOBBYOP

a year ago

never edited any files on railway directly


brody
EMPLOYEE

a year ago

you asked how to edit railway services, no? -- you cant edit files on railway as railway is a cloud hosting platform, not a file editor.


mohcine50
HOBBYOP

a year ago

that what I am asking, some generated files needs some edit .


brody
EMPLOYEE

a year ago

railway doesn't generate any files


brody
EMPLOYEE

a year ago

if you need to edit the staged changes you can go ahead and do that how you normally would make changes


mohcine50
HOBBYOP

a year ago

when run docker-compose up on this d-c file it will generate the four folder auto, I need to edit them ,


mohcine50
HOBBYOP

a year ago

In this case I am dragging only the yml file


brody
EMPLOYEE

a year ago

file editing is something your application will need to handle, railway is not a file editor


mohcine50
HOBBYOP

a year ago

understood


mohcine50
HOBBYOP

a year ago

if you have any idea how I can address this issue ?


brody
EMPLOYEE

a year ago

I think I had previously answered that in my last message


mohcine50
HOBBYOP

a year ago

can I access the volumes using railway CLI ?


brody
EMPLOYEE

a year ago

nope, as previously mentioned, your application would need to handle file editing


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...