Run dockerfile exposing 8000 port?

Ssdan4/26/2023
i am trying to run https://github.com/chroma-core/chroma dockerfile

it works on my machine but i can't expose the port 8000 on railway. the dockerfile exposes the 8000 port. heres how it runs on my machine:

docker build
docker run -p 8000:8000
Ssdan4/26/2023
186328e3-739e-42c7-9076-98f6f6efeb5d
Bbrody4/26/2023
you would just set PORT = 8000 in your service variables
Ssdan4/26/2023
if i run docker in the build/run stage on railway itself it says docker isn't a valid command
Ssdan4/26/2023
like this?
Bbrody4/26/2023
but this app wont work on railway if
1. it doesn't communicate over http/ws
or
2. needs persistent storage
Ssdan4/26/2023
it does communicate over https. i can actually show you logs that show its running on 0.0.0.0:8000

no persistent storage -- i will change that later, just trying to get it to work
Ssdan4/26/2023
rolling back now -- i can share the deployment in a sec
Ssdan4/26/2023
deployment: bd7b3224-41d2-4475-8e7b-3b25ecada779

if thats at all helpful
Bbrody4/26/2023
i cant do a single thing with that
Bbrody4/26/2023
the bot asks you to provide it incase the team needs to get involved, and in your case, they dont
Ssdan4/26/2023
here is what i see

https://chromadb.up.railway.app is the domain
8000 is the port it should be on but for some reason railway isn't opening that up
Bbrody4/26/2023
you can only access your service over port 443, setting PORT = 8000 just tells railway to forward traffic between 8000 internally and 443 externally
Bbrody4/26/2023
accessing your app from https://chromadb.up.railway.app/ works
Bbrody4/26/2023
using the https schema without a specified port implies the use of port 443
Ssdan4/26/2023
is there no support for http?
Bbrody4/26/2023
thats correct, secure by default and only secure
Ssdan4/26/2023
alright...ssl is a pain but found a hidden variable that enables it in the library i am trying to use. great work