I'm going to assume you have some basic knowledge of docker. I also assume you have installed docker and docker-compose locally. You can read more about docker here. I'm going to be doing this for an example Laravel site however this should work if you're using Drupal or some similar