For Ubuntu: Docker installation guide.
Docker compose: Installation guide.
In terminal run:
bash docker-up.sh
For stopping the docker processes, run: sudo docker-compose down
For the database migration part in the docker-up.sh bash script, simply copy the yiic.php
if you don't have any other custom configurations for your console and/or database.