Docker gets very confused if you have a depends in your docker-compose.yml. In some circumstances (possibly involving profiles) it tries to create a new network, but that network doesn’t exist.

Take out the depends.