docker-compose.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. - ./Docker/php/phpSettings.conf:/usr/local/etc/php-fpm.d/zzz-phpSettings.conf
  48. - "${LOG_ROOT}:/var/log:rw"
  49. - "${PROJECT_ROOT}:/var/www/html"
  50. - "${LEGACY_ROOT}:/var/www/drupal6"
  51. networks:
  52. - database
  53. - redis
  54. - server
  55. depends_on:
  56. - mysql
  57. - redis
  58. # - mysql-legacy
  59. phpmyadmin:
  60. image: phpmyadmin/phpmyadmin
  61. ports:
  62. - 8881:80
  63. networks:
  64. - database
  65. depends_on:
  66. - mysql
  67. environment:
  68. PMA_HOST: mysql
  69. nginx:
  70. build: ./Docker/nginx/
  71. ports:
  72. - 8880:80
  73. volumes:
  74. - "${PROJECT_ROOT}:/var/www/html"
  75. - "${LOG_ROOT}:/var/log:rw"
  76. networks:
  77. - server
  78. depends_on:
  79. - php
  80. volumes:
  81. php-root-data:
  82. db-data:
  83. redis-data:
  84. networks:
  85. database:
  86. redis:
  87. server: