-
-
Save joonhwan/800030f0347ac15b4677cb64115e58ed to your computer and use it in GitHub Desktop.
Vagrant + docker-compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongo: | |
image: mongo | |
ports: | |
- "27017:27017" | |
restart: always | |
redis: | |
image: redis | |
ports: | |
- "6379:6379" | |
restart: always |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure(2) do |config| | |
config.vm.box = "phusion/ubuntu-14.04-amd64" | |
config.vm.network "forwarded_port", guest: 3306, host: 3306 | |
# If errors occur, try running "vagrant provision" manually | |
# after "vagrant up" | |
config.vm.provision :docker | |
# To use docker_compose as a provisioning tool, install | |
# vagrant-docker-compose plugin first. It should also solve the | |
# "The '' provisioner could not be found." error: | |
# $ vagrant plugin install vagrant-docker-compose | |
config.vm.provision :docker_compose, rebuild: true, run: "always", yml: "/vagrant/docker-compose.yml" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment