With individual Docker commands

  1. Install Docker for Mac
  2. $ docker run –name mysql-latest -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:latest
  3. $ docker run –name wordpress -p 8000:80 –link mysql-latest:mysql -d wordpress:4.7.3-php7.1-apache
  4. Visit http://0.0.0.0:8000 and configure WordPress

With a Docker compose file

  1. Install Docker for Mac
  2. Save the following text to a ´~/dev /wordpress /website /docker-compose.yml´ file: {[ .=docker-compose.yml= | == | 1.hl(2) ]}
  3. Save the following text to a ´~/dev /wordpress /website /docker /wordpress /Dockerfile´ file {[ .Dockerfile | == | 1.hl(2) ]}
  4. Run everything: ´$ docker-compose up´
  5. Visit http://0.0.0.0:8000 and configure WordPress

Connect to the running dbms server from SequelPro

  1. Select the Standard tab
  2. Configure: {[ .sequel-pro | == | 1.hl(2) ]}
  3. Connect

Connect to a running server from a terminal

Example relative to connecting to the running dbms server.

  1. Find out the name of the server: {[ .=docker-compose ps= | == | 1.hl(2) ]}
  2. Connect to the ´website_dbms_1´ server: {[ .=docker exec= | == | 1.hl(2) ]}
  3. Then, for example, find out the server IP: {[ .hostname | == | 1.hl(2) ]}