How to link containers in a "icc=false" bridge?



  • I'd like to connect several services with a reverse proxy. But the services can't communicate with each others.

    I'm using a compose file for each service.

    I'm trying to use the same external bridge (icc=false).

    After that, I don't understand how to allow the different communication with the reverse proxy. I've tried links and external_links but it doesn't work. Then, I have read that link will be deprecated...

    Sorry for my english, I'm not a native speaker. Thanks, have a good day.

    #Example of Test1 compose file:
    version: '3'
    services:
      app:
        image: nicolaka/netshoot:latest
        tty: true
        restart: always
        networks:
          app-net:
        external_links:
          - test2-app-1
    

    networks:
    app-net:
    external:
    name: bridge_icc_false #created with com.docker.network.bridge.enable_icc=false



  • icc=false means that inter-container communications are not allowed. If you want to allow inter-container communications, you need to run your containers on a network without this setting.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2