Skip to content

Instantly share code, notes, and snippets.

@damonkelley
Last active August 29, 2015 14:10
Show Gist options
  • Select an option

  • Save damonkelley/de793cd6a2d1418efd63 to your computer and use it in GitHub Desktop.

Select an option

Save damonkelley/de793cd6a2d1418efd63 to your computer and use it in GitHub Desktop.
Fig - Persistent Database Configuration
db:
image: mysql:latest
volumes_from:
- data
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: db_user
MYSQL_PASSWORD: db_password
MYSQL_DATABASE: db_name
data:
image: busybox:latest
volumes:
- path/to/store/data/on/host:/var/lib/mysql
command: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment