:nxdomain error in creating docker containers of phoenix

Try adding depends_on to app service in your docker-compose.yml for the db service. The problem might be that you’re trying to access the database before it is even started and when you use depends on you might not need a bridge network to talk to db service.

Some of the examples in this thread might help you understand them in detail:

1 Like