Skip to content

Instantly share code, notes, and snippets.

View kunstloch's full-sized avatar

Alexander Scherer kunstloch

View GitHub Profile
@kunstloch
kunstloch / _windows-10-home-docker-toolbox-wordpress-mysql-with-volume.md
Last active December 5, 2020 01:02
Setting up WordPress and MySQL on Windows 10 Home (Docker Toolbox)
  1. Set up a docker-compose.yaml file (file content at the bottom of this page).

  2. Also create a data/mysql folder in your project.

  3. 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/Users Shared Folder that we can use for this (as long as your project is within C:\Users. Verify that this shared folder is set up properly:

    Capture

  4. Add a new volume to the mydatabase service in the docker-compose.yaml for 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
@kunstloch
kunstloch / .bashrc
Created September 3, 2019 12:26
Bash Aliases for Git
# 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'