1. Instead of running [setup.sh](https://github.com/bhavin192/wpinstall/blob/master/docker-setup/setup.sh), it can be added to the image. 2. You can use [volumes_from](https://docs.docker.com/compose/compose-file/compose-file-v2/#volumes_from)