Docker-compose tutorial

    31
    20



    If you have watched my video about “docker explained simply”, we will now have a look at how to easily manage multiple Docker containers with just one simple configuration file. We will deploy a simple web server and database.

    Docker-compose documentation: https://docs.docker.com/compose/
    Install docker-compose: https://docs.docker.com/compose/install/

    ________________
    BECOME A MEMBER AND BE A CODE HERO!

    🗨️ Get Help & Chat: https://discord.com/invite/bz2SN7d

    🥳 Support me: https://www.youtube.com/channel/UCZNhwA1B5YqiY1nLzmM0ZRg/join

    ________________
    AWESOME COURSES & TRAINING:

    👨‍🎓 ITProTV-*: https://itpro.tv/thedigitallife

    ________________
    HOST YOUR APPS & SERVERS:

    💧 DigitalOcean-*: https://m.do.co/c/e9f31a8c7756

    ________________
    FOLLOW ME EVERYWHERE:

    🐦 Twitter News: https://twitter.com/christian_tdl
    📷 Instagram Vlog: https://instagram.com/christian_tdl
    👨‍💻 GitHub Projects: https://github.com/xcad2k
    🎮 Gaming and Coding: https://twitch.tv/The_Digital_Life_
    🌍 Read my Blog: https://www.the-digital-life.com

    ________________
    OTHER COOL STUFF:

    🖥️ My Equipment: https://kit.co/thedigitallife
    👕 Geek Merch: https://the-digital-life-store.creator-spring.com/

    ________________
    ⏱️ TIMESTAMPS:
    00:00 – Introduction
    01:29 Get started with docker-compose.yaml
    03:29 Versioning in docker-compose files
    04:40 Deploy a simple webserver with docker-compose
    11:30 Add more containers like database
    17:00 Remove all docker containers from docker-compose file
    18:03 Summary

    —-
    All links with “*” are affiliate links.

    source

    Previous articleTutorial Penggunaan Microsoft Azure – Kampus MDP
    Next articleHow to build and deploy a containerized app to Azure Kubernetes Service (AKS) | Azure Friday

    20 COMMENTS

    1. Hi Christian. Thanks for the awesome work you do!
      I followed many of your videos, and they helped me a lot.

      If you have time to answer my question, that would be great, because I can't find a solution for my problem in Docker-Swarm.

      I've installed "Ghost CMS" on Docker Swarm, along with NGINX-Proxy-Manager. Everything works as expected, except the Ghost CMS.

      When I deploy Ghost as a service with multiple instances, I can't login. I get to the login page, put the user & pw and hit enter, and I'l get thrown back to the login screen once again. This does not happen if I deploy Ghost with only 1 instance, either as a service or container. I have a NFS share for the Worker Nodes & the Master, so they can access all the same data of Ghost.

      Do you have any Idea for me Christian? 😉

      Have a great day and continue your fantastic job here on YT.
      Thanks cheers…

    2. Hi, thanks for your videos, they are awesome. I have a question in general about docker-compose…if I want to spin up two different Nextcloud instances that have access to the same database application but different DB names, how would that look? Can I just add this to the compose file with different names?

      Thanks a lot!!