[Pierre B. (accepted answer)] I understand you want to restrict communications so that containers can only communicate with other services such as: - fusionauth should be able to contact es_search, postgres_db - backend should be able to contact auth, mysql_db - auth should be able to contact fusionauth, backend - ui should be able to contact backend, auth You can use networks as you already partially do in your example to enable communication such as: - services on the same network can reach each other using the service name or alias - i.e.

Context: Stack Overflow #61244829 (accepted answer, 5 votes, 3 answers): I have 7 docker containers namely - es_search - postgres_db - fusionauth - mysql_db - auth - backend - ui The communication between containers should be like below - fusionauth should be able to contact es_search, postgres_db - backend should be able to contact auth, mysql_db - auth should be able to contact fusionauth, backend - ui should be able to contact backend, auth Existing docker-compose ``` version: '3.1' services: postgres_db: container_name: postgres_db image: postgres:9.6 environment: PGDATA: /var/lib/postgresql/data/pgdata POSTGRES_USER: ${POSTGR

## Matched source
Source: Published skill
Original query: "Docker compose containers communication"
Key terms: communication, compose, containers, docker
