carlessanagustin
8/9/2017 - 10:39 AM

Docker compose for 2 Ubuntu linked containers

Docker compose for 2 Ubuntu linked containers

version: '3'

services:

  ubuntu01:
    image: ubuntu:17.04
    volumes:
      - .:/shared:rw
    entrypoint: ["top", "-b"]
    command: ["-c"]
    #ports:
    #  - "XX:XX"

  ubuntu02:
    image: ubuntu:17.04
    volumes:
      - .:/shared:rw
    depends_on:
      - ubuntu01
    entrypoint: ["top", "-b"]
    command: ["-c"]
    #ports:
    #  - "XX:XX"