internal communication in railway not working.
I am trying to deploy a laravel application in docker. Due to certain requirements I need to deploy it in two containers. one laravel container which runs php-fpm and another one is nginx server.
I have enable private network for both the containers and I named the fpm contanier private domain app. Now if I use app:9000 in the proxy pass it is not working getting
host not found in upstream "app" in /etc/nginx/conf.d/default.conf:30
error.
everthing works for me in local. can someone help on this ?
11 Replies
Project ID:
ba101f40-f9ad-4be5-a531-ccc43a641df6
project id : ba101f40-f9ad-4be5-a531-ccc43a641df6
is nginx just a proxy? what else is it doing?
this is nginx config added
docker config
may i ask why you cant run php and nginx in the same container?
i am planning for a load balncer config so i need to run cron job and queue using the same code but different containers
do you think nginx:stable-alpine is a problem here ?
Solution
changing it to nginx fixed
all solved?
yes
awesome