Multiple ports in docker

Anonymous
TRIAL

a year ago

hey i have a svelte and go app in a docker contianer ( tldr -> my i have django(1st contianer successfully deployed), go and svelte app( another contianer), Django app makes api calls to the golang server that writes to the svelte files; I am porting this here form aws, here is my repo link ->https://github.com/MONISHSHARMA080/deployfirstwebsite-to_fly/ ) I want to serve my svelte app on the default port(80) and go on 4696(any thing else will be fine too ) but when i deploy it i set the PORT variable to be 4696 and i get the go server( live here ->https://deployfirstwebsite-tofly-production.up.railway.app/), but when it is 80 i get nothing in return , and also how am I able to serve both the apps on different ports

0 Replies

Anonymous
TRIAL

a year ago

project id -> c23d8b15-2401-4d00-91df-984ae1ce228f


a year ago

you would want to adopt a more conventional project structure, a monorepo would be best for this, your structure would look something like this -
```