Advertisement
Guest User

Docker multiple network issues

a guest
Mar 5th, 2017
220
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # test1/docker-compose.yml
  2. version: '2'
  3. networks:
  4.   back:
  5.     driver: bridge
  6.   front:
  7.     driver: bridge
  8. services:
  9.   web:
  10.     image: nginx
  11.     networks:
  12.      - front
  13.       - back
  14.   app:
  15.     image: nginx
  16.     networks:
  17.      - back
  18.  
  19. # test2/docker-compose.yml
  20. version: '2'
  21. networks:
  22.   front:
  23.     external:
  24.       name: test1_front
  25. services:
  26.   proxy:
  27.     image: nginx
  28.     networks:
  29.      - front
Advertisement
RAW Paste Data Copied
Advertisement