Docker Community Forums

Share and learn in the Docker community.

Predictable interface names or IP adresses in Swarm


(T3chris) #1

Hello,

to properly configure JBoss EAP (Wildfly) within a Docker Swarm deployment I need to be able to clearly identify which interface within the container was created for which network.

For example, if I deploy the following Stack to Swarm, how do I know which interface and IP address was created for external_access, backend and swarm-multicast?

version: '3.3'
services:
  petshop-ui:
    image: com-registry.camba.local/petshop-ui:107
    networks:
      external_access:
      backend:
      swarm-multicast:
    ports:
      - "1002:8080"
    deploy:
      mode: replicated
      replicas: 3


networks:
  backend:
    driver: overlay
    internal: true

  swarm-multicast:
    external: true

  external_access:
    driver: overlay
    internal: false

Thanks, Best Regards,

Christian