DoubleK78 / zaeshop

0 stars 1 forks source link

Using Aws EC2 to Deploy ASP.NET #3

Open kietdev1 opened 1 year ago

kietdev1 commented 1 year ago

https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/run-an-asp-net-core-web-api-docker-container-on-an-amazon-ec2-linux-instance.html https://stackoverflow.com/questions/38775954/sudo-docker-compose-command-not-found https://stackoverflow.com/questions/46500639/how-do-i-use-docker-compose-debug-yml-to-debug-my-node-running-in-docker https://everythingdevops.dev/how-to-deploy-a-multi-container-docker-compose-application-on-amazon-ec2/

kietdev1 commented 1 year ago

https://learn.microsoft.com/en-us/dotnet/core/install/linux-centos https://stackoverflow.com/questions/15112424/how-to-edit-httpd-conf-file-in-amazon-ec2 sudo nano /etc/httpd/conf/httpd.conf https://www.c-sharpcorner.com/article/deploy-asp-net-core-application-on-ec2-amazon-linux-instance/ dotnet publish --configuration Release

kietdev1 commented 1 year ago

https://www.youtube.com/watch?v=lDI_7Ev6Hg8 https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-apache?view=aspnetcore-7.0 /etc/httpd/conf.modules.d/ <VirtualHost *:80> ProxyPreserveHost On ProxyPass / http://127.0.0.1:5000/ ProxyPassReverse / http://127.0.0.1:5000/

We should config https://stackoverflow.com/questions/69532898/asp-net-core-6-0-kestrel-server-is-not-working https://stackoverflow.com/questions/51738893/removing-kestrel-binding-warning

kietdev1 commented 1 year ago

https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7 https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-7.0&tabs=linux-ubuntu

kietdev1 commented 1 year ago

docker-compose -f /path/to/other/docker-compose-file/docker-compose.yml up