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"