{"id":19055754,"url":"https://github.com/fatimajamali81/docker-nginx-webapp-deployment","last_synced_at":"2026-05-14T22:05:12.492Z","repository":{"id":249410280,"uuid":"831436336","full_name":"fatimajamali81/docker-nginx-webapp-deployment","owner":"fatimajamali81","description":"Basic Web Application Deployment Using Docker, Nginx, and an AWS EC2 instance","archived":false,"fork":false,"pushed_at":"2024-07-20T15:12:59.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-11T22:26:30.055Z","etag":null,"topics":["docker","ec2-instance","linux-server","nginx","webapplication"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fatimajamali81.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-20T14:42:19.000Z","updated_at":"2024-07-21T16:15:16.000Z","dependencies_parsed_at":"2024-07-20T16:28:59.117Z","dependency_job_id":"4e1407d5-52ea-46aa-9ed4-ac3c6807d4d4","html_url":"https://github.com/fatimajamali81/docker-nginx-webapp-deployment","commit_stats":null,"previous_names":["fatimajamali81/docker-nginx-webapp-deployment"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fatimajamali81/docker-nginx-webapp-deployment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatimajamali81%2Fdocker-nginx-webapp-deployment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatimajamali81%2Fdocker-nginx-webapp-deployment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatimajamali81%2Fdocker-nginx-webapp-deployment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatimajamali81%2Fdocker-nginx-webapp-deployment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fatimajamali81","download_url":"https://codeload.github.com/fatimajamali81/docker-nginx-webapp-deployment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatimajamali81%2Fdocker-nginx-webapp-deployment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33045149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","ec2-instance","linux-server","nginx","webapplication"],"created_at":"2024-11-08T23:46:53.058Z","updated_at":"2026-05-14T22:05:12.473Z","avatar_url":"https://github.com/fatimajamali81.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic Web Application Deployment\n\nThis project demonstrates the deployment of a basic web application using Docker, Nginx, and an AWS EC2 instance.\n\n## Setup\n\n1. **AWS EC2 Instance Setup:**\n   - Launch an EC2 instance with Ubuntu.\n   - Open ports 22 (SSH) and 80 (HTTP) in the security group.\n\n2. **Install Docker:**\n   - Update the package list and install Docker:\n     ```bash\n     sudo apt update\n     sudo apt install -y docker.io\n     sudo systemctl start docker\n     sudo systemctl enable docker\n     ```\n\n3. **Build and Deploy:**\n   - Create project files (HTML and Dockerfile).\n   - Build the Docker image:\n     ```bash\n     sudo docker build -t my-webapp .\n     ```\n   - Run the Docker container:\n     ```bash\n     sudo docker run -d -p 80:80 my-webapp\n     ```\n\n4. **Verify Deployment:**\n   - Navigate to the public DNS of your EC2 instance to view the deployed web application.\n\n\n## Optional step: Set Up Portainer for Docker Management\n\nPortainer provides a graphical user interface for managing Docker containers. This step is optional but recommended for users who prefer a UI for Docker management.\n\n1. **Pull and Run the Portainer Docker Image:**\n   - Pull the Portainer image:\n     ```bash\n     sudo docker pull portainer/portainer-ce\n     ```\n   - Run Portainer with Docker:\n     ```bash\n     sudo docker run -d -p 9000:9000 -p 9443:9443 --name portainer \\\n       --restart always \\\n       -v /var/run/docker.sock:/var/run/docker.sock \\\n       -v portainer_data:/data \\\n       portainer/portainer-ce\n     ```\n\n2. **Access Portainer:**\n   - Open your browser and navigate to `http://your-ec2-public-dns:9000` for HTTP or `https://your-ec2-public-dns:9443` for HTTPS (ensure you set up a secure connection if using HTTPS).\n\n3. **Initial Portainer Setup:**\n   - You will be prompted to create an admin user with a password. Complete this setup to access Portainer’s dashboard.\n\n4. **Using Portainer:**\n   - Log in to Portainer with the admin credentials you set up.\n   - Explore Docker containers, images, networks, and volumes through the Portainer dashboard.\n\n5. **Updating Portainer:**\n   - To update Portainer, stop and remove the existing container, and pull the latest image:\n     ```bash\n     sudo docker stop portainer\n     sudo docker rm portainer\n     sudo docker pull portainer/portainer-ce\n     sudo docker run -d -p 9000:9000 -p 9443:9443 --name portainer \\\n       --restart always \\\n       -v /var/run/docker.sock:/var/run/docker.sock \\\n       -v portainer_data:/data \\\n       portainer/portainer-ce\n     ```\n\n\n## Files in Project\n\n- `index.html`: The HTML content for the web application.\n- `Dockerfile`: Dockerfile for building the Nginx image.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatimajamali81%2Fdocker-nginx-webapp-deployment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffatimajamali81%2Fdocker-nginx-webapp-deployment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatimajamali81%2Fdocker-nginx-webapp-deployment/lists"}