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!!