snippetdockerMinor
How to link containers in a "icc=false" bridge?
Viewed 0 times
iccbridgefalsehowcontainerslink
Problem
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.
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=falseSolution
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.Context
StackExchange DevOps Q#16388, answer score: 1
Revisions (0)
No revisions yet.