-
Set up a
docker-compose.yamlfile (file content at the bottom of this page). -
Also create a
data/mysqlfolder in your project. -
In order to set up a volume for MySQL in Docker Toolbox, we will need a VirtualBox Shared Folder, just like mentioned in Fixing Volumes in Docker Toolbox.
VirtualBox by default has a
c/UsersShared Folder that we can use for this (as long as your project is withinC:\Users. Verify that this shared folder is set up properly:
-
Add a new volume to the
mydatabaseservice in thedocker-compose.yamlfor the database files. Because we are using docker-toolbox and VirtualBox, we need an absolute path, starting with//c/:volumes:
- //c/Users/your_username/projects/wordpress-docker-stack/data/mysql:/var/lib/mysql
Test of defined widths as per https://stackoverflow.com/questions/36121672/set-table-column-width-via-markdown/57420043#57420043
property |
description |
|---|---|
border-bottom-right-radius |
Defines the shape of the bottom-right |
| # Git Aliases (sorted alphabetically with some inculsive functions) | |
| # Adapted from oh-my-zsh git alias plugin. "compdef" is a Z shell autocompletion function, disabled throughout where applicable. | |
| alias g='git' | |
| alias ga='git add' | |
| alias gaa='git add --all' | |
| alias gapa='git add --patch' | |
| alias gb='git branch' |
| // This is a minimal UA sniffer, that only cares about the rendering/JS engine | |
| // name and version, which should be enough to do feature discrimination and | |
| // differential code loading. | |
| // | |
| // This is distinct from things like https://www.npmjs.com/package/ua-parser-js | |
| // which distinguish between different branded browsers that use the same rendering | |
| // engine. That sort of distinction is maybe useful for analytics purposes, but | |
| // for differential code loading it is overcomplicated. | |
| // | |
| // This is meant to demonstrate that UA sniffing is not really that hard if you're |