Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/focusaurus/dbdock
Vagrant + Ubuntu + Docker + DBs
https://github.com/focusaurus/dbdock
Last synced: 12 days ago
JSON representation
Vagrant + Ubuntu + Docker + DBs
- Host: GitHub
- URL: https://github.com/focusaurus/dbdock
- Owner: focusaurus
- Created: 2014-08-29T19:30:00.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-05-01T02:33:38.000Z (over 6 years ago)
- Last Synced: 2024-04-10T19:43:04.941Z (7 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dbdock
## Run your dev dbs and docker via vagrant
- Lets you work on many projects with many different databases with too much OSX craziness
- Uses vagrant to set you up a virtualbox VM with:
- Ubuntu
- docker
- docker-registry
- any databases you need for local projects# Prerequisites
- Mac OS X
- VirtualBox
- Vagrantecho 10.9.8.50 dbdock | sudo tee -a /etc/hosts
export DOCKER_HOST=tcp://dbdock:2375#Questions
- Why don't you run the databases as docker containers?
- You certainly can do that and you may prefer it.
- Containerizing the DBs doesn't provide any compelling advantage I can see so I just run them directly in the host OS. It keeps things just a little bit simpler.
- When I test my apps deployed in docker, I hook them up to containerized DBs, but for local development, I just point my app server at the dbdock host-only IP address and I'm done.
- Is it secure?
- I think it's reasonably secure since the host is behind the virtualbox NAT network
- The DBs and docker are only accessible via the virtualbox host-only network.
- That said, this is intended for non-sensitive, non-critical development/throwaway data. Don't put production data in here.
- Why does the `Vagrantfile` have a hard-coded IP address?
- That's just the address range I like to use on my virtualbox host-only network, and I prefer static IPs over DHCP. I also add a line to my `/etc/hosts` on my OSX machine so I can access the VM via the hostname `dbdock`.