Skip to content

Instantly share code, notes, and snippets.

@govm
Created August 25, 2017 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save govm/22cee6c0ca93e476bd99a3f37a876167 to your computer and use it in GitHub Desktop.
Save govm/22cee6c0ca93e476bd99a3f37a876167 to your computer and use it in GitHub Desktop.
docker-compose ipv6
version: '2.1'
services:
...
networks:
default:
driver: bridge
enable_ipv6: true
driver_opts:
com.docker.network.enable_ipv6: "true"
ipam:
driver: default
config:
- subnet: 172.20.0.0/16
gateway: 172.20.0.1
- subnet: 2001:x:y:z:0002::/80
gateway: 2001:x:y:z:0002::1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment