blob: 3dd74bdfac7c26374965eaf1fd8be7179d940da9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
|