John Willis

Docker Tutorial 10 – Docker Compose

This is a casual Docker tutorial series. We will start out first with very simple sessions on how to install and use the docker run command. In future videos we will hit more advanced topics.

 

Screen Shot 2015-05-20 at 10.16.48 AM

 

This tenth video talks about Docker Compose. We will cover basic installation and show how to create YML files to compose containers. Will will also use an Nginx/Tomcat stack as one of the examples.

 

Here’s the link to for some of the commands used in this video.

Head over to the install docs to download Compose 1.2 and check out the quick start guide to take it for a spin. If you have any questions, drop in to #docker-compose on IRC and report any bugs on GitHub.

Thank you,

John Willis
@botchagalupe

Learn More about Docker

, , , , ,

John Willis

Docker Tutorial 10 – Docker Compose


4 Responses to “Docker Tutorial 10 – Docker Compose”

  1. Docker Learner

    Thanks for the HD recording, I really appreciate it.

    Reply
  2. Jas

    John, very good tutorial. Thank you for doing this. Do you mine also including the nginx.conf into the gist please? Thanks Jason

    Reply
  3. Shiva Kumar H R

    Awesome tutorial. Thanks much for this.

    One minor update needed:

    I was hitting “ERROR: readdirent: not a directory” when I ran “docker-compose -f compose-ex2.yml up -d” (on CentOS 7). As suggested in https://github.com/docker/compose/issues/424#issuecomment-167586683 I updated the compose-ex2.yml as below (i.e. added ./ to relative paths) and it worked fine.

    nginx:

    volumes:
    – ./nginx.conf:/etc/nginx/nginx.conf
    tomcatapp1:

    volumes:
    – ./sample.war:/usr/local/tomcat/webapps/sample.war
    tomcatapp2:

    volumes:
    – ./sample.war:/usr/local/tomcat/webapps/sample.war
    tomcatapp3:

    volumes:
    – ./sample.war:/usr/local/tomcat/webapps/sample.war

    Reply

Leave a Reply to Jas

Click here to cancel reply.

Get the Latest Docker News by Email

Docker Weekly is a newsletter with the latest content on Docker and the agenda for the upcoming weeks.