4.15 out of 5
4.15
138 reviews on Udemy

Docker & Docker Compose for Beginners

Learn how to use Docker with GitHub storage and Digital Ocean deployment
Instructor:
Jan Zavrel
4,746 students enrolled
English
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

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 🙂

Docker

1
01 What You Will Need

I will explain how to set up the same environment I use. Get Atom.io along with terminal package and you are good to go!

2
02 Docker Installation

In this lecture, I will show you step by step how to install Docker for Mac.

3
03 Docker Hub

Here, we will take a look at Docker Hub, which is something like a central repository for Docker images. If you're familiar with GitHub, you'll feel right at home :)

4
04 Creating PHP Container

In this lecture, we will create our first container! We will use official PHP image available on Docker Hub.

5
Building Docker image

Can you build Docker image? Let's see!

6
05 Creating MySQL Container Part 1

In this lecture, we will create a container for MySQL database. Use the attached file if you don't want to type everything manually. You can use the file, just rename it to mysql.php or copy and paste its content to your own file.

7
06 Creating MySQL Container Part 2

This is the second part of MySQL container creation. We will address some important aspects.

Docker Compose

1
07 Docker Compose & Nginx

In this lecture, we will move on to some more exciting stuff. I will show you how Docker Compose helps you automate those tediuos steps we did manually in previous lectures.

2
08 Docker Compose & PHP

In this lecture, we will create PHP container, but this time, we will use Docker Compose to help us. Use the attached files if you don't want to type everything manually. You can use those files, just rename them to index.php and default.conf or copy and paste their content to your own files.

3
09 Fixing Nginx Error

In this lecture, I will show you how to fix the most common error people have with Nginx container and most importantly, how to find out what is wrong with you container.

4
10 Volumes & Data Containers

In this lecture, I will explain volumes and how they can help you getting your code into the containers.

5
11 Docker Compose & MySQL

In this lecture, I will show you how to create MySQL container the Docker Compose way :) Also, attached you will find the extended version of index.php file. Again, you can just rename it to index.php and overwrite the original one or just copy and paste the added section to your own file.

6
12 Using MySQL CLI

I will take you to the trip deep down the rabbit hole. We will jump from your machine deep down inside the container and then, once more, inside mysql server to create a table in our database!

7
13 Dangling Volumes

What is dangling volume and how to cope with it. That's what you will find out in this lecture.

8
Dangling volume

Do you know what it is and how to work with it?

9
14 Docker Compose & phpMyAdmin

phpMyAdmin is the easiest way to manage your databases. After our trip to MySQL CLI, you might appreciate this alternative method.

Remote Development

1
15 Using GitHub Repository

If you have a public repository with your code on GitHub, make sure to take this lecture and learn how you can automatically get your repository inside your container!

2
16 Provisioning to Digital Ocean

Digital Ocean droplet provisioned with your complete development environment including the code from GitHub. That's what you will have at the end of this lecture.

You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.2
4.2 out of 5
138 Ratings

Detailed Rating

Stars 5
71
Stars 4
42
Stars 3
19
Stars 2
6
Stars 1
0
5590e2093df5c4d39d7623b051b28d8d
30-Day Money-Back Guarantee

Includes

2 hours on-demand video
Full lifetime access
Access on mobile and TV
Certificate of Completion