docker-compose.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. version: "3.5"
  2. services:
  3. mysqld7:
  4. image: mariadb:latest
  5. volumes:
  6. - db-data-d7:/var/lib/mysql
  7. - ./Docker/mysql/mysql.cnf:/etc/mysql/conf.d/custom.cnf:ro
  8. - ./Docker/mysql/bashrc:/root/.bashrc:ro
  9. networks:
  10. - database
  11. hostname: mysqld7
  12. environment:
  13. MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
  14. MYSQL_DATABASE: "${DB_NAME}"
  15. MYSQL_USER: "${DB_USERNAME}"
  16. MYSQL_PASSWORD: "${DB_PASSWORD}"
  17. redisd7:
  18. image: redis:4
  19. command: redis-server /usr/local/etc/redis.conf
  20. volumes:
  21. - redis-data-d7:/data
  22. - ./Docker/redis/redis.conf:/usr/local/etc/redis.conf
  23. networks:
  24. - redisd7
  25. ports:
  26. - "6389"
  27. phpd7:
  28. build: ./Docker/php/
  29. expose:
  30. - 9000
  31. user: ${USER_UID}:${USER_GID}
  32. volumes:
  33. - php-data-d7:/home/${USER_UNAME}
  34. - "${D7_ROOT}:/var/www/html/clameurs-lawebserie.fr/public_html"
  35. - "${LOG_ROOT}/php:/var/log:rw"
  36. - "${XDEBUG_INI}:/usr/local/etc/php/conf.d/xdebug.ini"
  37. working_dir: "/var/www/html/clameurs-lawebserie.fr/public_html"
  38. networks:
  39. - database
  40. - redisd7
  41. - server
  42. depends_on:
  43. - mysqld7
  44. - redisd7
  45. phpmyadmin:
  46. image: phpmyadmin/phpmyadmin
  47. ports:
  48. - 8991:80
  49. networks:
  50. - database
  51. depends_on:
  52. - mysqld7
  53. environment:
  54. PMA_HOSTS: mysqld7
  55. nginx:
  56. build: ./Docker/nginx/
  57. ports:
  58. - 8990:80
  59. volumes:
  60. - "${D7_ROOT}:/var/www/html/clameurs-lawebserie.fr/public_html"
  61. - "${LOG_ROOT}:/var/log:rw"
  62. - "${STATIC_ROOT}:/var/www/html/clameurs-lawebserie.fr/static_html"
  63. working_dir: "/var/www/html/clameurs-lawebserie.fr/public_html"
  64. networks:
  65. - server
  66. depends_on:
  67. - phpd7
  68. # npm:
  69. # build: ./Docker/npm
  70. # user: ${USER_UID}:${USER_GID}
  71. # volumes:
  72. # - "${D7_THEME_ROOT}:/app"
  73. # - npm-user-data:/home/${USER_UNAME}
  74. # # ports:
  75. # # - 8788:8788
  76. # working_dir: "/app"
  77. volumes:
  78. db-data-d7:
  79. redis-data-d7:
  80. php-data-d7:
  81. # npm-user-data:
  82. networks:
  83. database:
  84. redisd7:
  85. server: