Skip to content

Instantly share code, notes, and snippets.

@ned1313
Created October 20, 2015 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ned1313/94070e1fde8151d6ab62 to your computer and use it in GitHub Desktop.
Save ned1313/94070e1fde8151d6ab62 to your computer and use it in GitHub Desktop.
Vagrant for Photon and Docker Compose for WordPress
wordpress:
image: wordpress
links:
- db:mysql
ports:
- 8080:80
db:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: Pa55w0rd
Vagrant.configure(2) do |config|
config.vm.box = "vmware/photon"
config.vm.provider "vmware_desktop" do |v|
v.vmx["memsize"] = "2048"
v.vmx["numvcpus"] = "2"
v.vmx["cpuid.coresPerSocket"] = "1"
end
config.vm.hostname = "dockerhost-prime"
config.vm.network "private_network", ip: "10.100.220.200"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment