Laravel 7 + Docker + AWS ECS: Containerize Laravel and Docker-Compose Environment (Hands-On)

  Рет қаралды 14,732

Ethereum-Blockchain-Developer | BlockOnAir

Ethereum-Blockchain-Developer | BlockOnAir

Күн бұрын

In this video we are installing Laravel with Composer via a docker image. Then we containerize the Laravel Installation and build a local development environment with Docker-Compose.
You will understand environment variables in Laravel and docker-compose. Volume Mounting. You will have PHP-FPM Container and a Nginx proxy container. It's suitable for local and production deployment.
This video is from the course "Complete 2020 AWS DevOps Bootcamp For Beginners (With ECS)" which you can get here: www.udemy.com/...
Join the course if you are interested to deploy this Laravel Package in a High Availability and Fault Tolerant Architecture to AWS using Elastic Container Service (ECS) and CodePipeline.
If you have never worked with Docker before, then also checkout the "The Complete Docker Bootcamp for Web Developers" over here: www.udemy.com/...
Subscribe to this channel for more like this and thumbs up the video!
Thanks!

Пікірлер: 29
@bespired
@bespired 2 жыл бұрын
Super cool.
@bespired
@bespired 2 жыл бұрын
But its incomplete... :(
@ambikesandboards
@ambikesandboards 4 жыл бұрын
Never got to ECS?... disappointed my time was wasted although it was still partially helpful. I still need to learn ECS
@tysonadeyemi3726
@tysonadeyemi3726 3 жыл бұрын
I just purchased your udemy course for £60 only to find out the rest of the content isnt there!
@Mail4rashid
@Mail4rashid 4 жыл бұрын
Awesome tutorial. When you are going to upload next lectures?
@TomsCourses
@TomsCourses 4 жыл бұрын
I have two children and a full-time day job :) I'll do my best, but can't guarantee anything
@markdegrootnl
@markdegrootnl 4 жыл бұрын
In the NGINX and PHP containers, you added the project folder as a volume. Why did you copy to contents as well?
@jebiboy
@jebiboy 2 жыл бұрын
I'm getting this "Composer could not find a composer.json file in /app"
@markdegrootnl
@markdegrootnl 4 жыл бұрын
Is the follow up on this video going to be posted on KZbin or is it only available in your Udemy course?
@tufancagkansokmen9566
@tufancagkansokmen9566 4 жыл бұрын
whats wrong with it? i cant see 7-11 lines on dockerfile. u type "freetype-dev" and go to another line. whats written on there? any documentation?
@squattingnomad6298
@squattingnomad6298 4 жыл бұрын
@28:33
@levinskipolish344
@levinskipolish344 4 жыл бұрын
Thank you for sharing that with the community! May I ask you why did you opt for spinning up all the containers within the Laravel project folder, is there any technical reason? Typically we keep the container outside of the application folder.
@TomsCourses
@TomsCourses 4 жыл бұрын
That very much depends if your laravel is your entry-point to your whole application, or if it's just one part of it. So, if you have a dozen other services using different languages and frameworks, then I'd also have the definitions (Dockerfile, docker-compose) outside of the laravel project, but if the whole application revolves around laravel then probably I'd do it this way.
@jebiboy
@jebiboy 2 жыл бұрын
@@TomsCourses hello . i really like your tutorial. do you have a sample wherein you create microservices for laravel? like a separate laravel project only for login and another microservice only for viewing your profile.
@uweopfern
@uweopfern 3 жыл бұрын
Share docker-compose file otherwise we are kind lost
@christiansenmarcus
@christiansenmarcus Жыл бұрын
Toto? Is it you?
@tufancagkansokmen9566
@tufancagkansokmen9566 4 жыл бұрын
i need to lines between 7-11 on dockerfile. please, why it jumps?
@TomsCourses
@TomsCourses 4 жыл бұрын
Just as an FYI: In the udemy-course I offer all files for download in a single zip (see video description) That's in my Dockerfile, I hope it brings you further: FROM php:7.3-fpm-alpine WORKDIR /var/www RUN apk update && apk add \ build-base \ freetype-dev \ libjpeg-turbo-dev \ libpng-dev \ libzip-dev \ zip \ jpegoptim optipng pngquant gifsicle \ vim \ unzip \ git \ curl RUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl RUN docker-php-ext-configure gd --with-gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/ RUN docker-php-ext-install gd # Install Redis Extension RUN apk add autoconf && pecl install -o -f redis \ && rm -rf /tmp/pear \ && docker-php-ext-enable redis && apk del autoconf # Copy config COPY ./config/php/local.ini /usr/local/etc/php/conf.d/local.ini RUN addgroup -g 1000 -S www && \ adduser -u 1000 -S www -G www USER www COPY --chown=www:www . /var/www RUN ["chmod", "+x", "./start_script.sh"] EXPOSE 9000 CMD ./start_script.sh
@jamesquinlan2638
@jamesquinlan2638 4 жыл бұрын
@@TomsCourses I've just purchased the course in order to get a hold of the zip file (I'm having problems with the indentations in the docker file) but I don't see anything...
@mityukov
@mityukov 4 жыл бұрын
@@TomsCourses Sorry, why "COPY ./config/php/local.ini /usr/local/etc/php/conf.d/local.ini" if it's "mounted" to here through the volumes section of docker-compose?
@mityukov
@mityukov 4 жыл бұрын
@@TomsCourses > CMD ./start_script.sh Can't find this script on app container… :(
Deploy Dockerized Laravel Application using AWS ECS + AWS CodeBuild
1:00:10
Containers on AWS Overview: ECS | EKS | Fargate | ECR
25:10
TechWorld with Nana
Рет қаралды 549 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Laravel Docker Course | Complete Laravel Dockerization
43:31
Emad Zaamout
Рет қаралды 88 М.
Dockerisd Laravel Application on AWS ECS + Code Pipeline
29:48
Coding Monk
Рет қаралды 1 М.
Easily deploy a Laravel application with Docker
21:21
Andrew Schmelyun
Рет қаралды 93 М.
Ansible 101 - Episode 3 - Introduction to Playbooks
1:02:07
Jeff Geerling
Рет қаралды 113 М.
Docker Containers and Kubernetes Fundamentals - Full Hands-On Course
5:56:37
Build & Deploy Multi-Container Apps to AWS
26:01
Docker
Рет қаралды 54 М.
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
OktaDev
Рет қаралды 1,8 МЛН
Containers in AWS | For Absolute Beginners
7:37
Tiny Technical Tutorials
Рет қаралды 59 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН