Docker Community Forums

Share and learn in the Docker community.

Configuring Encryption for Swarm ingress network in Compose

Hi All,

How can I configure encryption for swarm ingress network in Compose.
I know how it could be done in cli but could someone give an example for adding the encryption in compose for ingress network. Thanks in advance.

docker network rm ingress

docker network create
–driver overlay
–ingress
–subnet=10.11.0.0/16
–gateway=10.11.0.2
–opt com.docker.network.driver.mtu=1200
–opt encrypted=true
my-ingress-network