Docker & Docker Compose for Beginners
What you'll learn
- What is Docker, image and container
- How to use Docker Hub and images already available
- How to create your own images using Dockerfiles
- How to spin up containers, how to stop them and remove them
- How to work with volumes (mounted directories)
- What is Docker Compose and how it can help you orchestrate containers
- How to automatically provision your development environment to a remote server
- How to use your code stored in a public GitHub repository
- How to deploy your project to Digital Ocean droplet
Course content
- Preview04:02
- Preview02:11
- Preview10:33
- 08:2504 Creating PHP Container
- 2 questionsBuilding Docker image
- 07:5205 Creating MySQL Container Part 1
- 08:3806 Creating MySQL Container Part 2
Requirements
- You should have a Mac computer since this course was created on Mac and for Mac
- It's an advantage to have some PHP development background
- You should be able to use command line (terminal), but I will give you a quick introduction
Description
Hello and welcome to the course where I will teach you how Docker can help you with setting up and provisioning a specific development environment for your PHP project.
Even though I use PHP as an example, you can use the whole process for any other combination of microservices you need to use.
We will start with simple Docker commands, then we will move to Docker Compose.
I will explain how you can use Docker Compose to orchestrate the whole process of creating images and spinning up containers while creating volumes and mounting directories.
Next, we will take a look at GitHub. I will show you how easy it is to use your code stored in a public GitHub repository.
Finally, we will take a look at deployment to the remote server. In this final part, we will put everything together and provision our development environment remotely to Digital Ocean droplet while using code stored in GitHub repository.
Along the way, you should follow me step by step. I suggest you watch this course twice:
- For the first time, do exactly as I say and use my own examples.
- For the second time, try to use your own code stored locally and on your own GitHub account as well.
Attached, you will find the content I am referring to inside the course. It's better to just copy and paste the code than to rewrite it line by line manually.
Enjoy the course and if you have any questions, don't hesitate to drop me a line :)
Who this course is for:
- This course is primarily for PHP developers who want to try an alternative approach to common solutions like WAMP or Vagrant
- While I will talk about PHP, everything applies to other languages and databases as well
Instructor
Ultimate Goal:
Live long enough to live forever.
Inspired By:
1. Transcend: Nine Steps to Living Well Forever
2. Slight Edge
Projects:
1. Zavrel Consulting
2. Smart Profit School
3. Today WP
4. The New Fitness
5. codeWithJan
Books:
1. The Digital Instructor
2. The System2
3. Forty Years Old Dad in Twenty Years Old Body
4. Frontend From Scratch
5. Getting Sh*t Together
Online Courses:
1. Bohemiapps Online University
2. Udemy
3. Skillshare