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.

199 lines
6.2 KiB

5 years ago
5 years ago
  1. version: "2"
  2. services:
  3. web:
  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_PEAR_MAIL=${INSTALL_PEAR_MAIL}
  27. - INSTALL_ZIP=${INSTALL_ZIP}
  28. - INSTALL_BZ2=${INSTALL_BZ2}
  29. - INSTALL_INTL=${INSTALL_INTL}
  30. - PHP_OPT_SHORT_OPEN_TAG=${PHP_OPT_SHORT_OPEN_TAG}
  31. - PHP_OPT_MAX_EXECUTION_TIME=${PHP_OPT_MAX_EXECUTION_TIME}
  32. - PHP_OPT_MEMORY_LIMIT=${PHP_OPT_MEMORY_LIMIT}
  33. - PHP_OPT_UPLOAD_MAX_FILESIZE=${PHP_OPT_UPLOAD_MAX_FILESIZE}
  34. restart: always
  35. volumes:
  36. - ${PROJECTS_DIR}:/usr/share/nginx/html
  37. - ./tmp/php-fpm:/tmp/profiling
  38. expose:
  39. - 9000
  40. php7.1-fpm:
  41. build:
  42. context: dockerfiles/php7.1-fpm
  43. args:
  44. - INSTALL_XDEBUG=${INSTALL_XDEBUG}
  45. - INSTALL_REDIS=${INSTALL_REDIS}
  46. - INSTALL_PEAR_MAIL=${INSTALL_PEAR_MAIL}
  47. - INSTALL_ZIP=${INSTALL_ZIP}
  48. - INSTALL_BZ2=${INSTALL_BZ2}
  49. - INSTALL_INTL=${INSTALL_INTL}
  50. - PHP_OPT_SHORT_OPEN_TAG=${PHP_OPT_SHORT_OPEN_TAG}
  51. - PHP_OPT_MAX_EXECUTION_TIME=${PHP_OPT_MAX_EXECUTION_TIME}
  52. - PHP_OPT_MEMORY_LIMIT=${PHP_OPT_MEMORY_LIMIT}
  53. - PHP_OPT_UPLOAD_MAX_FILESIZE=${PHP_OPT_UPLOAD_MAX_FILESIZE}
  54. restart: always
  55. volumes:
  56. - ${PROJECTS_DIR}:/usr/share/nginx/html
  57. expose:
  58. - 9000
  59. workspace:
  60. build:
  61. context: ./dockerfiles/workspace
  62. args:
  63. - PHP_VERSION=${WORKSPACE_PHP_VERSION}
  64. - PUID=${WORKSPACE_PUID}
  65. - PGID=${WORKSPACE_PGID}
  66. - TZ=${WORKSPACE_TIMEZONE}
  67. - COMPOSER_GLOBAL_INSTALL=${WORKSPACE_COMPOSER_GLOBAL_INSTALL}
  68. - COMPOSER_AUTH=${WORKSPACE_COMPOSER_AUTH}
  69. - COMPOSER_REPO_PACKAGIST=${WORKSPACE_COMPOSER_REPO_PACKAGIST}
  70. - INSTALL_WP_CLI=${WORKSPACE_INSTALL_WP_CLI}
  71. - INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG}
  72. - INSTALL_SSH=${WORKSPACE_INSTALL_SSH}
  73. - SSH_PASSPHRAZE=${WORKSPACE_SSH_PASSPHRAZE}
  74. - INSTALL_FSWATCH=${WORKSPACE_INSTALL_FSWATCH}
  75. - INSTALL_NODE=${WORKSPACE_INSTALL_NODE}
  76. - NODE_VERSION=${WORKSPACE_NODE_VERSION}
  77. - NPM_REGISTRY=${WORKSPACE_NPM_REGISTRY}
  78. - INSTALL_YARN=${WORKSPACE_INSTALL_YARN}
  79. - YARN_VERSION=${WORKSPACE_YARN_VERSION}
  80. - INSTALL_GULP=${WORKSPACE_INSTALL_GULP}
  81. - INSTALL_MYSQL_CLIENT=${WORKSPACE_INSTALL_MYSQL_CLIENT}
  82. - INSTALL_PING=${WORKSPACE_INSTALL_PING}
  83. - INSTALL_PYTHON=${WORKSPACE_INSTALL_PYTHON}
  84. restart: always
  85. volumes:
  86. - ${PROJECTS_DIR}:/var/www
  87. extra_hosts:
  88. - "dockerhost:${DOCKER_HOST_IP}"
  89. workspace_alex2911:
  90. build:
  91. context: ./dockerfiles/workspace
  92. args:
  93. - PHP_VERSION=${WORKSPACE_PHP_VERSION}
  94. - PUID=${WORKSPACE_PUID}
  95. - PGID=${WORKSPACE_PGID}
  96. - TZ=${WORKSPACE_TIMEZONE}
  97. - COMPOSER_GLOBAL_INSTALL=${WORKSPACE_COMPOSER_GLOBAL_INSTALL}
  98. - COMPOSER_AUTH=${WORKSPACE_COMPOSER_AUTH}
  99. - COMPOSER_REPO_PACKAGIST=${WORKSPACE_COMPOSER_REPO_PACKAGIST}
  100. - INSTALL_WP_CLI=${WORKSPACE_INSTALL_WP_CLI}
  101. - INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG}
  102. - INSTALL_SSH=${WORKSPACE_INSTALL_SSH}
  103. - SSH_PASSPHRAZE=${WORKSPACE_SSH_PASSPHRAZE}
  104. - INSTALL_FSWATCH=${WORKSPACE_INSTALL_FSWATCH}
  105. - INSTALL_NODE=${WORKSPACE_INSTALL_NODE}
  106. - NODE_VERSION=${WORKSPACE_NODE_VERSION}
  107. - NPM_REGISTRY=${WORKSPACE_NPM_REGISTRY}
  108. - INSTALL_YARN=${WORKSPACE_INSTALL_YARN}
  109. - YARN_VERSION=${WORKSPACE_YARN_VERSION}
  110. - INSTALL_GULP=${WORKSPACE_INSTALL_GULP}
  111. - INSTALL_MYSQL_CLIENT=${WORKSPACE_INSTALL_MYSQL_CLIENT}
  112. - INSTALL_PING=${WORKSPACE_INSTALL_PING}
  113. - INSTALL_PYTHON=${WORKSPACE_INSTALL_PYTHON}
  114. restart: always
  115. volumes:
  116. - ${PROJECTS_DIR}:/var/www
  117. extra_hosts:
  118. - "dockerhost:${DOCKER_HOST_IP}"
  119. sphinx:
  120. build: ./dockerfiles/sphinx
  121. restart: always
  122. depends_on:
  123. - db
  124. command: sh -c 'searchd -c /etc/sphinxsearch/sphinx.conf & sleep 10 && while true; do indexer --rotate --all; sleep 7200; done'
  125. volumes:
  126. - /home/dimti/docker-compose-projects/structure/config/sphinx:/etc/sphinxsearch
  127. - /home/dimti/docker-compose-projects/structure/data/sphinx:/var/lib/sphinx/data
  128. - /home/dimti/docker-compose-projects/structure/log/sphinx:/var/log/sphinxsearch
  129. expose:
  130. - "9306"
  131. db:
  132. image: mariadb
  133. restart: always
  134. environment:
  135. MYSQL_ROOT_PASSWORD: 123456
  136. volumes:
  137. - database:/var/lib/mysql
  138. - ./hostfiles:/hostfiles
  139. ports:
  140. - "3306:3306"
  141. phpmyadmin:
  142. image: phpmyadmin/phpmyadmin
  143. restart: always
  144. environment:
  145. PMA_HOST: db
  146. PMA_USER: root
  147. PMA_PASSWORD: 123456
  148. ports:
  149. - "81:80"
  150. dbpg:
  151. image: postgres
  152. restart: always
  153. environment:
  154. POSTGRES_PASSWORD: postgres
  155. volumes:
  156. - databasepg:/var/lib/postgresql/data
  157. - /data/hostfiles:/hostfiles
  158. adminer:
  159. image: adminer
  160. restart: always
  161. ports:
  162. - 8080:8080
  163. pgadmin:
  164. image: dpage/pgadmin4
  165. restart: always
  166. environment:
  167. PGADMIN_DEFAULT_EMAIL: info@wpstudio.ru
  168. PGADMIN_DEFAULT_PASSWORD: postgres
  169. ports:
  170. - "83:80"
  171. volumes:
  172. - /data/hostfiles/pgadmin:/var/lib/pgadmin
  173. redis:
  174. image: redis
  175. restart: always
  176. command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
  177. volumes:
  178. - ./config/redis/redis.conf:/usr/local/etc/redis/redis.conf
  179. elasticsearch:
  180. image: docker.elastic.co/elasticsearch/elasticsearch:7.5.2
  181. restart: always
  182. container_name: elasticsearch
  183. environment:
  184. - discovery.type=single-node
  185. - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  186. ulimits:
  187. memlock:
  188. soft: -1
  189. hard: -1
  190. mem_limit: 2g
  191. volumes:
  192. - esdata1:/usr/share/elasticsearch/data
  193. expose:
  194. - "9200"
  195. - "9300"
  196. volumes:
  197. database:
  198. esdata1: