1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
version: "2" services: web: image: alpine:3.7 command: top networks: ["front"] app: image: alpine:3.7 command: top networks: ["front", "back"] links: - "db:database" db: image: alpine:3.7 command: top networks: ["back"] networks: front: {} back: {}