Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

docker-compose.yml 604B

123456789101112131415161718
  1. # Develop phpvirtualbox in docker
  2. #
  3. # 1) Get virtualbox host-only interface IP used by docker machine:
  4. # docker-machine inspect default -f '{{.Driver.HostOnlyCIDR}}' | sed -e 's#/.*##'
  5. # 2) Start vboxwebsrv on the IP returned from the above command:
  6. # vboxwebsrv -H 192.168.99.1 # or edit vboxwebsrv startup config
  7. # 3) Edit config.php to use the IP
  8. # 4) docker-compose up
  9. # 5) Get docker machine ip:
  10. # docker-machine ip default
  11. # 6) phpVirtualBox should be available at http://<ip returned from above command>
  12. #
  13. phpvirtualbox:
  14. build: .
  15. ports:
  16. - "80:80"
  17. volumes:
  18. - .:/var/www/html