Consider the following docker-compose.yml file:
services:
web:
image: nginx
networks:
- frontend
db:
image: postgres
networks:
- backend
networks:
frontend:
backend:
Can the web service communicate with the db service?