docker-compose.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. version: "3.5"
  2. services:
  3. mysql:
  4. image: mariadb:latest
  5. volumes:
  6. - db-data:/var/lib/mysql
  7. - ./Docker/mysql/mysql.cnf:/etc/mysql/conf.d/custom.cnf:ro
  8. - "${DB_IMPORTE_FILE_D8}:/docker-entrypoint-initdb.d/edlp_d8.sql"
  9. # - "${DB_IMPORTE_FILE_D6}:/docker-entrypoint-initdb.d/edlp_d6.sql"
  10. networks:
  11. - database
  12. hostname: mysql
  13. environment:
  14. MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
  15. MYSQL_DATABASE: "${DB_NAME}"
  16. MYSQL_USER: "${DB_USERNAME}"
  17. MYSQL_PASSWORD: "${DB_PASSWORD}"
  18. #
  19. # mysql-legacy:
  20. # image: mariadb:latest
  21. # volumes:
  22. # - db-legacy-data:/var/lib/mysql
  23. # # - "${DB_IMPORTE_FILE_D8}:/docker-entrypoint-initdb.d/edlp_d8.sql"
  24. # - "${DB_IMPORTE_FILE_D6}:/docker-entrypoint-initdb.d/edlp_d6.sql"
  25. # networks:
  26. # - database
  27. # hostname: mysql-legacy
  28. # environment:
  29. # MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
  30. # MYSQL_DATABASE: "${DB_NAME}"
  31. # MYSQL_USER: "${DB_USERNAME}"
  32. # MYSQL_PASSWORD: "${DB_PASSWORD}"
  33. redis:
  34. image: redis:4
  35. volumes:
  36. - redis-data:/data
  37. networks:
  38. - redis
  39. ports:
  40. - "6379"
  41. php:
  42. build: ./Docker/php/
  43. expose:
  44. - 9000
  45. volumes:
  46. - php-root-data:/root
  47. - "${PROJECT_ROOT}:/var/www/html"
  48. - "${LEGACY_ROOT}:/var/www/drupal6"
  49. networks:
  50. - database
  51. - redis
  52. - server
  53. depends_on:
  54. - mysql
  55. - redis
  56. # - mysql-legacy
  57. phpmyadmin:
  58. image: phpmyadmin/phpmyadmin
  59. ports:
  60. - 8881:80
  61. networks:
  62. - database
  63. depends_on:
  64. - mysql
  65. environment:
  66. PMA_HOST: mysql
  67. nginx:
  68. build: ./Docker/nginx/
  69. ports:
  70. - 8880:80
  71. volumes:
  72. - "${PROJECT_ROOT}:/var/www/html"
  73. - "${LOG_ROOT}:/var/log:rw"
  74. networks:
  75. - server
  76. depends_on:
  77. - php
  78. volumes:
  79. php-root-data:
  80. db-data:
  81. redis-data:
  82. networks:
  83. database:
  84. redis:
  85. server: