I have two docker-compose file.
Firstly upped backend container and inspect the container and copy ip address for extra_hosts for frontend docker-compose file and than up