This expects that the nettest network be created beforehand, and assigns the containers to it when they start. You can also exclude the “external: true” line which will make Docker Compose generate the network for you automatically, but keep in mind when it does that it will prepend the name of the project in front of it (i.e. “pwd_nettest”)