When I rebuilt and started, for the first time in a while, a container that uses external in order to communicate between containers in different Docker environments, I ran into the error below
network default: network.external.name is deprecated.
Please set network.name with external: trueThe docker-compose.yml I had been using until then worked with the following
…
networks:
default:
external:
name: ${NETWORK}The compose version has gone up and the way it is written seems to have changed, and the format below is apparently the correct one
…
networks:
default:
name: ${NETWORK}
external: trueOr
…
networks:
${NETWORK}
external: ture