R
Railway14mo ago
sactrom

deployment angular app from dockerfile and NGIX

I'm trying to deploy my angular app with docker and a ngix but I do not have much experience doing it in raiwaly, the palpitation displays correctly but if I try to see it through a domain it throws me error 503 and I do not find the problem someone could guide me a little
Solution:
in that config file, listen on 8080, and then set a service variable PORT = 8080
Jump to solution
11 Replies
Percy
Percy14mo ago
Project ID: 355432eb-e1bc-4d73-b214-3d2577d45ccd
sactrom
sactrom14mo ago
355432eb-e1bc-4d73-b214-3d2577d45ccd
Solution
Brody
Brody14mo ago
in that config file, listen on 8080, and then set a service variable PORT = 8080
sactrom
sactrom14mo ago
@Brody in the docker file or ngix.conf
Brody
Brody14mo ago
btw its nginx.conf listen 8080; in your nginx.conf
sactrom
sactrom14mo ago
Thank you 👍🏼
Brody
Brody14mo ago
let me know how that goes
sactrom
sactrom14mo ago
It worked perfectly, I just had to add the variable of PORT 80 to make it work with my configuration
Brody
Brody14mo ago
you should be using a non privileged port (8080) i have seen services become unstable using port 80
sactrom
sactrom14mo ago
Okay I'll make the correction you suggest
Brody
Brody14mo ago
awsome