R
Railway•14mo 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
Percy•14mo ago
Project ID: 355432eb-e1bc-4d73-b214-3d2577d45ccd
sactrom
sactrom•14mo ago
355432eb-e1bc-4d73-b214-3d2577d45ccd
Solution
Brody
Brody•14mo ago
in that config file, listen on 8080, and then set a service variable PORT = 8080
sactrom
sactrom•14mo ago
@Brody in the docker file or ngix.conf
Brody
Brody•14mo ago
btw its nginx.conf listen 8080; in your nginx.conf
sactrom
sactrom•14mo ago
Thank you 👍🏼
Brody
Brody•14mo ago
let me know how that goes
sactrom
sactrom•14mo ago
It worked perfectly, I just had to add the variable of PORT 80 to make it work with my configuration
Brody
Brody•14mo ago
you should be using a non privileged port (8080) i have seen services become unstable using port 80
sactrom
sactrom•14mo ago
Okay I'll make the correction you suggest
Brody
Brody•14mo ago
awsome