[For beginners] Laravel Docker AWS (EC2) How to easily deploy a web application (PHP) from 0 (free) ①-Overview-

Being able to do it (MacOS premise. If you do the same, Win is okay)

I will write the process of creating a web application (PHP) with Docker and deploying it on AWS in an easy-to-understand manner! !! I've become able to program, but I want to bring what I've made to the world, but I don't know! For those who have become

It consists of three parts (1) to (3) ① Overall picture and overall flow, like a table of contents ② Reason for using Docker and project creation procedure ③ Upload the created project to AWS (EC2 instance) and put it out to the world!

First from the big picture

qiita-square The whole image looks like this. If you create this, you can put the created web application out to the world! !!

The order from 0 to the world (it's like a table of contents)

** 1. Install Docker on your PC **

** 2. Project (create a directory) **

** 3. Build environment using Docker in Project ** --Install the web server (nginx) --Install application server (php: 7.4-fpm), install PHP package management tool (Composer) --Install database server (mysql) --Install a framework (Laravel) that handles PHP

** 4. UP Project to Github **

** 5. Free programming in the local state! !! ** ** I'm programming with Laravel (PHP) here! !!

** 6. Upload the finished product to Github **

--- Explanation in ② so far ---

** 7. Register with AWS and create an EC2 instance (Ubuntu )! !! ** **

** 8. Build environment in EC2 instance (Ubuntu) ** --Install PHP --Install the web server (nginx) --Install application server (php: 7.4-fpm), install PHP package management tool (Composer) --Install database server (mysql) --Install a framework (Laravel) that handles PHP

** 9. Git clone to a directory inside your EC2 instance (Ubuntu). Bring the project from Github! !! ** **

** 10. Access and display the corresponding URL! !! Successful deployment! ** **

What should I do specifically? ??

I'm tired so I'll do something like this in this article Next time, from building an environment using Docker to uploading to Github Then go to ② [For beginners] Laravel Docker AWS (EC2) How to easily deploy a web application (PHP) from 0 (free) ②-Docker development environment construction (Laravel)- https://qiita.com/SG_Sg/items/12fdaeef1d9b7bbb397d

** I think there are some parts that are difficult to read or incorrect in Qiita's first post, but I would appreciate it if you could kindly point out in the comments. ** **

Recommended Posts

[For beginners] Laravel Docker AWS (EC2) How to easily deploy a web application (PHP) from 0 (free) ①-Overview-
How to migrate a web application created in a local docker environment to AWS
How to deploy to Heroku from a local docker image
From studying programming for 2 months to releasing a web application
How to deploy a Rails application on AWS (article summary)
Deploy SpringBoot application to AWS EC2
How to create a web server on an EC2 instance on AWS
How to build a Ruby on Rails environment using Docker (for Docker beginners)
How to deploy a container on AWS Lambda
How to get a heapdump from a Docker container
[AWS] How to automatically deploy a Web application created with Rails 6 to ECR / ECS using CircleCI ① Preparation [Container deployment]
From building an AWS cloud environment to deploying a Spring Boot app (for beginners)
Deploy laravel using docker on EC2 on AWS ① (Create EC2 instance)
List how to learn from Docker to AKS on AWS
[Spring Boot] How to create a project (for beginners)
How to make Laravel faster with Docker for Mac
Deploy laravel using docker on EC2 on AWS ② (Elastic IP acquisition-linking)
How to create an application server on an EC2 instance on AWS
How to deploy a kotlin (java) app on AWS fargate
How to install Web application for each language in Nginx
Deploy with EC2 / Docker / Laravel
[Almost free] How to get a domain and SSL certificate for 0 yen using Freenom and Let's Encrypt, put docker in AWS EC2, start an nginx container, and launch an HTTPS WEB service that connects with the domain
Deploy laravel using docker on EC2 on AWS ③ (SSH connection ~ Docke-compose installation)
How to publish an application using AWS (3) EC2 instance environment construction
How to run a job with docker login in AWS batch
Deploy a Docker application with Greengrass
How to deploy Laravel on CentOS 7
To beginners launching Docker on AWS
Creating a java web application development environment with docker for mac part1
[Docker] How to create a virtual environment for Rails and Nuxt.js apps
[AWS ELB] Using ELB and Docker, EC2 has two domains for WEB servers.
[For Rails beginners] Summary of how to use RSpec (get an overview)
[Java] [For beginners] How to insert elements directly in a 2D array
Create a java web application development environment with docker for mac part2