How do I deploy a docker to a new project?
jstamb
HOBBYOP

a year ago

Hi, I'm a beginner and don't know how I would follow these instructions to deploy a github repo using Railway:

https://github.com/gyoridavid/ai_agents_az/blob/main/episode_11/guide-start-server.md#deploy-the-server-to-the-cloud

Solved

40 Replies

jstamb
HOBBYOP

a year ago

n/a


a year ago

From the instructions in the header you referenced, you'll want to go to your Railway project (create one if you dont have a project)

then right click on the canvas and click Docmer Image, then enter the docker image provided in the docs you mentioned (gyoridavid/ai-agents-no-code-tools:latest)

Once that's deploying you can add a PORT=8000 variable which will map the port to 8000 as mentioned in the docs, and finally add a domain in the service settings to access this project

Keep in mind I'm not sure if more steps are reequired since I only looked at the header you referenced, but knowing what I told you here should be enough to carry you through most of it

I'd also recommend going through:

It gives a quick rundown of where everything is on Railway and how to use it


jstamb
HOBBYOP

a year ago

Ok so basically create a blank project first to access the canvas?


jstamb
HOBBYOP

a year ago

it's super buggy - I click empty project and it just thinks forever, I do it again, gives the error "failed to fetch" so I back out and I have 3 empty projects now


a year ago

that's probably because there's an ongoing incident right now in #🚨|incidents


jstamb
HOBBYOP

a year ago

ah shoot another one :/

yeah I'm stuck on applying changes

1384220407011344544


a year ago

might be worth waiting til the incident is over 😔


jstamb
HOBBYOP

a year ago

For sure. thanks for the help to get going


a year ago

no problem at all 😄


jstamb
HOBBYOP

a year ago

the app is deployed but I'm getting

{

"detail": "Not Found"

}

Project ID: 2c432a7b-889f-40b7-9355-a32600a35e68


a year ago

Interesting, is this happening during build or during deployment?


jstamb
HOBBYOP

a year ago

hmm not sure what you mean


jstamb
HOBBYOP

a year ago

during build I guess


a year ago

oh wait yea this is a docker image, there is no build <:FacePalm:805393285740232704>


a year ago

my bad my head is in the clouds


jstamb
HOBBYOP

a year ago

haha no worries


a year ago

those logs are coming from the application then, which is good cause at least we know the app is running, kinda

it's likely just misconfigured at this point, which makes sense I only gave instructions based on what I saw in the paragraph you referenced


jstamb
HOBBYOP

a year ago

yeah, those are the only doc instructions to get it running. clone repo and forward port 8000


a year ago

although looking at the docs again, it doesn't look like anything else is necassery <:Thinking:1360710341239242762>


a year ago

yea


a year ago

what happens if you go to the URL?


jstamb
HOBBYOP

a year ago

{"detail":"Not Found"}


a year ago

ohh, i thought that's from your logs


a year ago

what's in your logs then?


jstamb
HOBBYOP

a year ago


 

   FastAPI   Starting production server 🚀

 

             Searching for package file structure from directories with         

             __init__.py files                                                  

17:22:57 |           config:25 |     INFO | Using 8 cores

             Importing from /app

 

    module   🐍 server.py

 

      code   Importing the FastAPI app object from the module with the following

             code:                                                              

 

             from server import app

 

       app   Using import string: server:app

 

    server   Server started at http://0.0.0.0:8000

    server   Documentation at http://0.0.0.0:8000/docs

 

             Logs:

 

      INFO   Started server process [1]

      INFO   Waiting for application startup.

      INFO   Application startup complete.

      INFO   Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)

2025-06-16 17:22:58.107 | INFO     | server::26 - This server was created by the 'AI Agents A-Z' YouTube channel | {}

2025-06-16 17:22:58.107 | INFO     | server::27 - https://www.youtube.com/@aiagentsaz | {}

2025-06-16 17:22:58.107 | INFO     | server::28 - Using device: cpu | {}

      INFO   100.64.0.2:50280 - "GET / HTTP/1.1" 404

      INFO   100.64.0.2:50280 - "GET /favicon.ico HTTP/1.1" 404

      INFO   100.64.0.3:23608 - "GET / HTTP/1.1" 404

      INFO   100.64.0.3:15990 - "GET / HTTP/1.1" 404```


a year ago

that's interesting, so the app itself is responding with 404


jstamb
HOBBYOP

a year ago

I can try again it was in the middle of the incident


a year ago

yea maybe that'd be a good idea


a year ago

though likely case the app is either not functional or doesn't have up-to-date docs which lead us to have misconfigured it

Everything on Railway's side is configured properly, because the app is receiving and replying to requests


a year ago

I couldn't find any github project for this app either so I can't even check the code to see what we're missing



a year ago

oh cool


a year ago

This application has no resource for /


a year ago

try going to /health instead


a year ago

it should return {"status": "ok"}


a year ago

if that works then the app is functioning completely fine


jstamb
HOBBYOP

a year ago

ah my bad. I totally read that earlier and forgot


jstamb
HOBBYOP

a year ago

it's running perfectly normal!


a year ago

awesome, glad we got this figured out


a year ago

!s


Status changed to Solved dev 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...