Skip to content

Instantly share code, notes, and snippets.

@potikanond
Last active August 26, 2018 15:11
Show Gist options
  • Save potikanond/ac8f559b7f8a27e463597221147bc4b5 to your computer and use it in GitHub Desktop.
Save potikanond/ac8f559b7f8a27e463597221147bc4b5 to your computer and use it in GitHub Desktop.
Ex2.6: Wordpress Application

Ex2.6: Wordpress Application

Start MySQL container with specified MySQL root password

$ docker container run -d --name my_db -e MYSQL_ROOT_PASSWORD=1234 mysql:5.7

Start Wordpress container and 'link' with MySQL container

$ docker container run --name my_wordpress --link my_mysql:mysql -p 8081:80 wordpress

Install and initialize Wordpress

Go to the URL: http://localhost:8081/wp-admin/install.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment