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