Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Containers #101 : Introduction to Docker Compose V2

1,596 views

Published on

In this session, we learnt about Docker Compose V2, how to convert a docker-compose.yml from V1 to V2, the new file format etc...
The session run for 30 minutes.
Join our meetup to attend future sessions online @
meetup.com/Containers-101-online-meetup/
or follow us on twitter @codefresh

Published in: Technology
  • Be the first to comment

Containers #101 : Introduction to Docker Compose V2

  1. 1. Docker Compose V 2 April 2016
  2. 2. About the meetup • A series of 30 min webinars & in person meetup • Hands On • Online session are recorded • Suggested topics and presenters are welcome Recording available at https://vimeo.com/channels/containers101
  3. 3. About me • Developer, entrepreneur and technology enthusiast • Live in the Silicon Valley since 2008 • Founder and CEO of Codefresh @RazielTabib
  4. 4. About codefresh Continuous Integration and Delivery platform built for Docker and microservices. www.codefresh.io @codefresh contact@codefresh.io
  5. 5. What we will see today • Intro to Docker Compose • Docker Compose 2 enhancements – Services – Networks – Volumes • Q&A
  6. 6. Docker Compose Compose is a tool for defining and running multi-container Docker applications. Complete documentation @ https://docs.docker.com/compose/overview/
  7. 7. Docker Compose example Web: build: . ports: - “9000:9000” links: - mongo mongo: image: mongo:latest docker-compose.yml nodejs Mongo Lets chat app
  8. 8. Docker Compose V 2 docker-compose.yml version: ‘2’ Services Networks Volumes
  9. 9. Services docker-compose.yml version: ‘2’ Networks Volumes services: web: build: context: . dockerfile: Dockerfile image: demochatweb:0.1 mongo: image: mongo
  10. 10. Networks docker-compose.yml version: ‘2’ services: service1: image: ubuntu command: sleep 3600 networks: - internal1 - default service2: image: ubuntu command: sleep 3600 networks: - internal1 service3: image: ubuntu command: sleep 3600 networks: - default networks: internal1: driver: bridge
  11. 11. Volumes docker-compose.yml version: ‘2’ services: service1: image: ubuntu command: sleep 3600 volumes: - data:/data service2: image: ubuntu command: sleep 3600 volumes: - data:/data volumes: data: driver: local
  12. 12. additional resources • Codefresh blog www.codefresh.io/blog • Vimeo channel www.vimeo.com/channels/containers101 • Containers #101 http://www.meetup.com/Containers-101-online-meetup/ • Check us out @ www.codefresh.io @codefresh

×