nico
nico
Explore posts from servers
RRailway
Created by nico on 11/1/2023 in #✋|help
Need help setting up private network w/ uvicorn and docker
I have a frontend that tries to fetch data from my backend, which is running in a docker container using uvicorn. I'm able to get everything functional if using an ipv4 address, but not if im using the private network. My Dockerfile:
...
EXPOSE 80
EXPOSE 4000

CMD bash -c "set -a && source .env && set +a && uvicorn main:app --reload --host 0.0.0.0 --port 4000 --host '::' --port 80"
...
EXPOSE 80
EXPOSE 4000

CMD bash -c "set -a && source .env && set +a && uvicorn main:app --reload --host 0.0.0.0 --port 4000 --host '::' --port 80"
In my frontend code, i try to fetch from backend.railway.internal/
213 replies