With individual Docker commands
- Install Docker for Mac
- $ docker run –name mysql-latest -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:latest
- $ docker run –name wordpress -p 8000:80 –link mysql-latest:mysql -d wordpress:4.7.3-php7.1-apache
- Visit http://0.0.0.0:8000 and configure WordPress
With a Docker compose file
- Install Docker for Mac
- Save the following text to a ´~/dev /wordpress /website /docker-compose.yml´ file:
- Save the following text to a ´~/dev /wordpress /website /docker /wordpress /Dockerfile´ file
- Run everything: ´$ docker-compose up´
- Visit http://0.0.0.0:8000 and configure WordPress
Connect to the running dbms server from SequelPro
- Select the Standard tab
- Configure:
- Connect
Connect to a running server from a terminal
Example relative to connecting to the running dbms server.
- Find out the name of the server:
- Connect to the ´website_dbms_1´ server:
- Then, for example, find out the server IP:
