docker-compose.yml 453 B

123456789101112131415161718192021222324252627282930
  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. networks:
  11. - server
  12. nginx:
  13. build: ./Docker/nginx/
  14. ports:
  15. - 8882:80
  16. volumes:
  17. - "${PROJECT_ROOT}:/var/www/html"
  18. - "${LOG_ROOT}:/var/log:rw"
  19. networks:
  20. - server
  21. depends_on:
  22. - php
  23. volumes:
  24. php-root-data:
  25. networks:
  26. server: