Last active
June 24, 2019 17:24
-
-
Save avielb/d05c4827531a15ed4cdcd408295f3907 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker pull nginx:1.15.12-alpine | |
docker run --name my-nginx -d -p 80:80 nginx:1.15.12-alpine | |
docker ps | |
go to localhost or 192.168.99.100 | |
################ | |
docker build -t my-first-image . | |
docker run --name my-frst-container my-first-image | |
################ | |
docker network create wordpress | |
docker container run --name mysql-container --rm --network wordpress -e MYSQL_ROOT_PASSWORD=wordpress -d mysql:5.7 | |
docker container run --name wordpress-container --rm --network wordpress -e WORDPRESS_DB_HOST=mysql-container -e WORDPRESS_DB_PASSWORD=wordpress -p 8090:80 -d wordpress | |
################ | |
https://gist.github.com/avielb/485b542cc4756d99154f77a875a41b87 | |
docker-compose for wordpress | |
################ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment