I have a docker compose file with env variables for stage specific configurations. As long as env variables are used in values in docker-compose.yml everything is fine, but the problem is with the network name, since it's specified in the tag.
networks:
mynetwork.${STAGE_NAME}:
driver: bridge
ipam:
driver: default
config:
- subnet: ${STAGE_NETWORK_PREFIX}.0/24
Any chance to get the network name mynetwork.${STAGE_NAME}
configurable from outside?