summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorIan Moore <imoore76@yahoo.com>2015-12-02 08:45:23 -0500
committerIan Moore <imoore76@yahoo.com>2015-12-02 08:45:23 -0500
commit94e17f57f3f16628f140cdd5fd5ca00806ca208f (patch)
treec20c59230818ed3400787e4ead6181b403f77f5c /docker-compose.yml
parent242d71fc6756d83f7b0bfe4669ad25536c416975 (diff)
downloadphpvirtualbox-94e17f57f3f16628f140cdd5fd5ca00806ca208f.zip
phpvirtualbox-94e17f57f3f16628f140cdd5fd5ca00806ca208f.tar.gz
phpvirtualbox-94e17f57f3f16628f140cdd5fd5ca00806ca208f.tar.bz2
Docker related files
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