Skip to content

Instantly share code, notes, and snippets.

@mvmthecreator
Last active April 10, 2019 12:33
Show Gist options
  • Save mvmthecreator/dcd5ff60be6fc6b11f932bd6f0656f42 to your computer and use it in GitHub Desktop.
Save mvmthecreator/dcd5ff60be6fc6b11f932bd6f0656f42 to your computer and use it in GitHub Desktop.
# This creates a docker container with lemp stack and creates
# --net = name of your host
# -v your webroot folder:docker container folder with z option
docker run -it -p "8080:80" -p "3306:3306" -e MYSQL_PASS="MySecretPassword" -v /home/user_home_folder/web:/app:z --name=webserver --net=hostname tutum/lamp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment