Skip to content

Instantly share code, notes, and snippets.

@wader
Last active March 26, 2018 14:10
Show Gist options
  • Save wader/64ea3844b3d87ae0fe6e92f5705a7dff to your computer and use it in GitHub Desktop.
Save wader/64ea3844b3d87ae0fe6e92f5705a7dff to your computer and use it in GitHub Desktop.
maybe something like this
don't think you need to do docket network create... should only be need if you use external
not sure about the service networks yml syntax when thre is settings (ipv4_address)
services:
app:
...
networks:
default # <-- to still be part of the compose <projectname>_default bridge network
eib_multicast_vlan:
ipv4_address: 192.168.0.123 # <-- ip to use for this container in the network otherwise i think docker will assign one
networks:
eib_multicast_vlan:
driver: ipvlan
driver_opts:
parent: eth0
ipvlan_mode: l2
ipam:
config:
- subnet: 192.168.0.0/24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment