docker-compose.yml 514 B

12345678910111213141516171819202122232425262728293031
  1. version: "3.5"
  2. services:
  3. php:
  4. build: ./Docker/php/
  5. expose:
  6. - 9000
  7. volumes:
  8. - php-root-data:/root
  9. - "${PROJECT_ROOT}:/var/www/html"
  10. - "${XDEBUG_INI}:/usr/local/etc/php/conf.d/xdebug.ini"
  11. networks:
  12. - server
  13. nginx:
  14. build: ./Docker/nginx/
  15. ports:
  16. - 8882:80
  17. volumes:
  18. - "${PROJECT_ROOT}:/var/www/html"
  19. - "${LOG_ROOT}:/var/log:rw"
  20. networks:
  21. - server
  22. depends_on:
  23. - php
  24. volumes:
  25. php-root-data:
  26. networks:
  27. server: