Hello,
In ch07s05, until point 4, all three containers have:
--net compose-lab_default
When you only add at the end to the compose.yaml file networks:
services:
...
networks:
lab-net: {}
then you will see that all three containers have:
--net compose-lab_lab-net
So I do not understand why under 4 two containers are given networks:
services:
wiremock:
...
networks:
- lab-net
quotes-api:
networks:
- lab-net
I seems unnecessary to me.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.