docker-compose.yml 1.4 KB

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