You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
2.9 KiB

  1. version: '3.6'
  2. services:
  3. nginx:
  4. image: nginx
  5. restart: always
  6. networks:
  7. default:
  8. aliases:
  9. - loc.10ballov
  10. volumes:
  11. - ${PROJECTS_DIR}:/usr/share/nginx/html
  12. - ./config/nginx/conf.d:/etc/nginx/conf.d
  13. - ./config/nginx/includes.d:/etc/nginx/includes.d
  14. - ./log/nginx:/var/log/nginx
  15. ports:
  16. - "80:80"
  17. - "443:443"
  18. expose:
  19. - 80
  20. php-fpm:
  21. build:
  22. context: ./dockerfiles/php-fpm
  23. args:
  24. - INSTALL_XDEBUG=${INSTALL_XDEBUG}
  25. - INSTALL_REDIS=${INSTALL_REDIS}
  26. - INSTALL_ZIP=${INSTALL_ZIP}
  27. - INSTALL_BZ2=${INSTALL_BZ2}
  28. - INSTALL_INTL=${INSTALL_INTL}
  29. - INSTALL_PGSQL=${INSTALL_PGSQL}
  30. - INSTALL_BCMATH=${INSTALL_BCMATH}
  31. - INSTALL_PEAR_MAIL=${INSTALL_PEAR_MAIL}
  32. - PHP_OPT_SHORT_OPEN_TAG=${PHP_OPT_SHORT_OPEN_TAG}
  33. - PHP_OPT_MAX_EXECUTION_TIME=${PHP_OPT_MAX_EXECUTION_TIME}
  34. - PHP_OPT_MEMORY_LIMIT=${PHP_OPT_MEMORY_LIMIT}
  35. - PHP_OPT_UPLOAD_MAX_FILESIZE=${PHP_OPT_UPLOAD_MAX_FILESIZE}
  36. restart: always
  37. volumes:
  38. - ${PROJECTS_DIR}:/usr/share/nginx/html
  39. expose:
  40. - 9000
  41. workspace:
  42. build:
  43. context: ./dockerfiles/workspace
  44. args:
  45. - PUID=${WORKSPACE_PUID}
  46. - PGID=${WORKSPACE_PGID}
  47. - TZ=${WORKSPACE_TIMEZONE}
  48. - INSTALL_SSH=${WORKSPACE_INSTALL_SSH}
  49. - INSTALL_MYSQL_CLIENT=${WORKSPACE_INSTALL_MYSQL_CLIENT}
  50. - INSTALL_PYTHON=${WORKSPACE_INSTALL_PYTHON}
  51. - INSTALL_FSWATCH=${WORKSPACE_INSTALL_FSWATCH}
  52. - INSTALL_PING=${WORKSPACE_INSTALL_PING}
  53. - INSTALL_S3_MINIO_CLIENT=${WORKSPACE_INSTALL_S3_MINIO_CLIENT}
  54. - COMPOSER_VERSION=${WORKSPACE_COMPOSER_VERSION}
  55. - COMPOSER_GLOBAL_INSTALL=${WORKSPACE_COMPOSER_GLOBAL_INSTALL}
  56. - COMPOSER_REPO_PACKAGIST=${WORKSPACE_COMPOSER_REPO_PACKAGIST}
  57. - INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG}
  58. - INSTALL_WP_CLI=${WORKSPACE_INSTALL_WP_CLI}
  59. - INSTALL_NODE=${WORKSPACE_INSTALL_NODE}
  60. - NODE_VERSION=${WORKSPACE_NODE_VERSION}
  61. - NPM_REGISTRY=${WORKSPACE_NPM_REGISTRY}
  62. - INSTALL_GULP=${WORKSPACE_INSTALL_GULP}
  63. - INSTALL_YARN=${WORKSPACE_INSTALL_YARN}
  64. - YARN_VERSION=${WORKSPACE_YARN_VERSION}
  65. restart: always
  66. volumes:
  67. - ${PROJECTS_DIR}:/var/www
  68. extra_hosts:
  69. - "dockerhost:${DOCKER_HOST_IP}"
  70. db:
  71. image: mariadb
  72. restart: always
  73. environment:
  74. MYSQL_ROOT_PASSWORD: 123456
  75. ports:
  76. - "3306:3306"
  77. pma:
  78. image: phpmyadmin/phpmyadmin
  79. restart: always
  80. environment:
  81. PMA_HOST: db
  82. PMA_USER: root
  83. PMA_PASSWORD: 123456
  84. ports:
  85. - "81:80"
  86. redis:
  87. image: redis
  88. restart: always
  89. command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
  90. volumes:
  91. - ./config/redis/redis.conf:/usr/local/etc/redis/redis.conf
  92. # Must be copied into main docker-compose yml-file
  93. volumes:
  94. database: