ecommerce-micro-service-web

所属分类:微服务
开发工具:Dockerfile
文件大小:0KB
下载次数:0
上传日期:2023-10-18 13:48:06
上 传 者sh-1993
说明:  电子商务微服务网络,,
(ecommerce micro service web,,)

文件列表:
Dockerfile (320, 2023-10-28)
front-end/ (0, 2023-10-28)
front-end/index.html (3532, 2023-10-28)
front-end/login.html (2814, 2023-10-28)
front-end/product1.jpeg (4481, 2023-10-28)
front-end/product2.jpeg (5403, 2023-10-28)
front-end/product3.jpeg (3584, 2023-10-28)
front-end/product4.jpeg (2460, 2023-10-28)
front-end/product5.jpeg (1280, 2023-10-28)
front-end/signup.html (2946, 2023-10-28)
install-docker.sh (159, 2023-10-28)

# Deploying the E-commerce Micro services Project on EC2 This guide will walk you through the steps to deploy the E-commerce Micro service project on an EC2 instance using Nginx. ## Prerequisites - An AWS account with an EC2 instance running Amazon Linux. - Basic knowledge of AWS services and Linux commands. ## Step 1: Create EC2 instance (AWS Linux 2023) 1. Create EC2 instance using the below user data ``` #!/bin/bash sudo yum update -y sudo yum install docker -y sudo usermod -a -G docker ec2-user newgrp docker systemctl start docker systemctl enable docker ``` 2. Enable http (80) port for everyone on security groups 1. Obtain the SSH key pair associated with your EC2 instance. 2. Connect to the instance using SSH: ``` ssh -i /path/to/your/key.pem ec2-user@ ``` ## Step 2: Download the code, build docker image, run container sudo yum update -y install git using::: sudo yum install git 1. Clone the repository containing the E-commerce Microservices project: ``` git clone https://github.com/HermannTJ/ecommerce-micro-service-web.git ``` 2. Change directory to the project: ``` cd ecommerce-micro-service-web ``` 3. Build docker image: ``` docker build -t web-image . ``` 4. Run docker image: ``` docker run -d -p 80:80 web-image ``` ## Step 3: Access the website 3. Open a web browser and navigate to your EC2 instance's public IP or DNS. 4. You should see the E-commerce micro services project served by Nginx. ## Conclusion Congratulations! You have successfully deployed the E-commerce micro services project on an EC2 instance with Nginx. You can now access the project through Nginx. Feel free to customize and expand upon this guide based on your specific project requirements. Happy learning

近期下载者

相关文件


收藏者