Skip to content

Instantly share code, notes, and snippets.

@NewGyu
Last active May 25, 2016 15:07
Show Gist options
  • Save NewGyu/9b27e44fcd9205d8024b6e2186cfc0e4 to your computer and use it in GitHub Desktop.
Save NewGyu/9b27e44fcd9205d8024b6e2186cfc0e4 to your computer and use it in GitHub Desktop.
console:
image: alpine
links:
- localdb
volumes_from:
- datavolume
command: sh
datavolume:
image: alpine
volumes:
- /hoge/fuga
command: sh
localdb:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: hogedb
MYSQL_USER: hogehoge
MYSQL_PASSWORD: fugafuga
volumes:
- ./data:/var/lib/mysql
ports:
- "3306:3306"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment