Containers #101 : Introduction to Docker Compose V2

Download Containers #101 : Introduction to Docker Compose V2

Post on 10-Jan-2017

737 views

Category:

Technology

0 download

TRANSCRIPT

Node.js & Docker

Docker Compose V 2April 2016

About the meetup A series of 30 min webinars & in person meetupHands OnOnline session are recordedSuggested topics and presenters are welcomeRecording available athttps://vimeo.com/channels/containers101

About me Developer, entrepreneur and technology enthusiastLive in the Silicon Valley since 2008 Founder and CEO of Codefresh

@RazielTabib

About codefreshContinuous Integration and Delivery platform built for Docker and microservices.

www.codefresh.io@codefresh

contact@codefresh.io

What we will see todayIntro to Docker ComposeDocker Compose 2 enhancementsServicesNetworksVolumesQ&A

Docker Compose

Compose is a tool for defining and running multi-container Docker applications.

Complete documentation @https://docs.docker.com/compose/overview/

Docker Compose exampleWeb: build: . ports: - 9000:9000 links: - mongo

mongo: image: mongo:latest

docker-compose.yml

nodejsMongo

Lets chat app

Docker Compose V 2

docker-compose.ymlversion: 2

ServicesNetworksVolumes

Services

docker-compose.ymlversion: 2

NetworksVolumesservices:web: build: context: . dockerfile: Dockerfile image: demochatweb:0.1mongo: image: mongo

Networks

docker-compose.ymlversion: 2

services:service1: image: ubuntu command: sleep 3600 networks: - internal1 - defaultservice2: image: ubuntu command: sleep 3600 networks: - internal1service3: image: ubuntu command: sleep 3600 networks: - default

networks: internal1: driver: bridge

Volumes

docker-compose.ymlversion: 2

services:service1: image: ubuntu command: sleep 3600 volumes: - data:/dataservice2: image: ubuntu command: sleep 3600 volumes: - data:/datavolumes: data: driver: local

additional resourcesCodefresh blog www.codefresh.io/blogVimeo channel www.vimeo.com/channels/containers101Containers #101 http://www.meetup.com/Containers-101-online-meetup/

Check us out @ www.codefresh.io

@codefresh

Recommended

View more >