Duplicating env values for each image is not ideal as updating them is error-prone, as one has to remember to update both of them every time.
Please consider adding this feature to the app spec. this is an essential feature and a basic one available in docker-compose already, so it's a surprise that it's missing here.