summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..3dd74bd
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,18 @@
+# Develop phpvirtualbox in docker
+#
+# 1) Get virtualbox host-only interface IP used by docker machine:
+# docker-machine inspect default -f '{{.Driver.HostOnlyCIDR}}' | sed -e 's#/.*##'
+# 2) Start vboxwebsrv on the IP returned from the above command:
+# vboxwebsrv -H 192.168.99.1 # or edit vboxwebsrv startup config
+# 3) Edit config.php to use the IP
+# 4) docker-compose up
+# 5) Get docker machine ip:
+# docker-machine ip default
+# 6) phpVirtualBox should be available at http://<ip returned from above command>
+#
+phpvirtualbox:
+ build: .
+ ports:
+ - "80:80"
+ volumes:
+ - .:/var/www/html \ No newline at end of file