docker-compose.yml 64 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895
  1. version: '3.5'
  2. networks:
  3. frontend:
  4. driver: ${NETWORKS_DRIVER}
  5. backend:
  6. driver: ${NETWORKS_DRIVER}
  7. volumes:
  8. mysql:
  9. driver: ${VOLUMES_DRIVER}
  10. percona:
  11. driver: ${VOLUMES_DRIVER}
  12. mssql:
  13. driver: ${VOLUMES_DRIVER}
  14. postgres:
  15. driver: ${VOLUMES_DRIVER}
  16. memcached:
  17. driver: ${VOLUMES_DRIVER}
  18. redis:
  19. driver: ${VOLUMES_DRIVER}
  20. neo4j:
  21. driver: ${VOLUMES_DRIVER}
  22. mariadb:
  23. driver: ${VOLUMES_DRIVER}
  24. mongo:
  25. driver: ${VOLUMES_DRIVER}
  26. minio:
  27. driver: ${VOLUMES_DRIVER}
  28. rethinkdb:
  29. driver: ${VOLUMES_DRIVER}
  30. phpmyadmin:
  31. driver: ${VOLUMES_DRIVER}
  32. adminer:
  33. driver: ${VOLUMES_DRIVER}
  34. aerospike:
  35. driver: ${VOLUMES_DRIVER}
  36. caddy:
  37. driver: ${VOLUMES_DRIVER}
  38. meilisearch:
  39. driver: ${VOLUMES_DRIVER}
  40. elasticsearch:
  41. driver: ${VOLUMES_DRIVER}
  42. mosquitto:
  43. driver: ${VOLUMES_DRIVER}
  44. confluence:
  45. driver: ${VOLUMES_DRIVER}
  46. sonarqube:
  47. driver: ${VOLUMES_DRIVER}
  48. cassandra:
  49. driver: ${VOLUMES_DRIVER}
  50. graylog:
  51. driver: ${VOLUMES_DRIVER}
  52. docker-in-docker:
  53. driver: ${VOLUMES_DRIVER}
  54. react:
  55. driver: ${VOLUMES_DRIVER}
  56. services:
  57. ### Workspace Utilities ##################################
  58. workspace:
  59. build:
  60. context: ./workspace
  61. args:
  62. - CHANGE_SOURCE=${CHANGE_SOURCE}
  63. - SHELL_OH_MY_ZSH=${SHELL_OH_MY_ZSH}
  64. - SHELL_OH_MY_ZSH_AUTOSUGESTIONS=${SHELL_OH_MY_ZSH_AUTOSUGESTIONS}
  65. - SHELL_OH_MY_ZSH_ALIASES=${SHELL_OH_MY_ZSH_ALIASES}
  66. - UBUNTU_SOURCE=${UBUNTU_SOURCE}
  67. - BASE_IMAGE_TAG_PREFIX=${WORKSPACE_BASE_IMAGE_TAG_PREFIX}
  68. - LARADOCK_PHP_VERSION=${PHP_VERSION}
  69. - LARADOCK_PHALCON_VERSION=${PHALCON_VERSION}
  70. - INSTALL_SUBVERSION=${WORKSPACE_INSTALL_SUBVERSION}
  71. - INSTALL_BZ2=${WORKSPACE_INSTALL_BZ2}
  72. - INSTALL_GMP=${WORKSPACE_INSTALL_GMP}
  73. - INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG}
  74. - INSTALL_PCOV=${WORKSPACE_INSTALL_PCOV}
  75. - INSTALL_PHPDBG=${WORKSPACE_INSTALL_PHPDBG}
  76. - INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE}
  77. - INSTALL_SSH2=${WORKSPACE_INSTALL_SSH2}
  78. - INSTALL_SOAP=${WORKSPACE_INSTALL_SOAP}
  79. - INSTALL_XSL=${WORKSPACE_INSTALL_XSL}
  80. - INSTALL_LDAP=${WORKSPACE_INSTALL_LDAP}
  81. - INSTALL_SMB=${WORKSPACE_INSTALL_SMB}
  82. - INSTALL_IMAP=${WORKSPACE_INSTALL_IMAP}
  83. - INSTALL_MONGO=${WORKSPACE_INSTALL_MONGO}
  84. - INSTALL_AMQP=${WORKSPACE_INSTALL_AMQP}
  85. - INSTALL_CASSANDRA=${WORKSPACE_INSTALL_CASSANDRA}
  86. - INSTALL_GEARMAN=${WORKSPACE_INSTALL_GEARMAN}
  87. - INSTALL_PHPREDIS=${WORKSPACE_INSTALL_PHPREDIS}
  88. - INSTALL_MSSQL=${WORKSPACE_INSTALL_MSSQL}
  89. - NVM_NODEJS_ORG_MIRROR=${WORKSPACE_NVM_NODEJS_ORG_MIRROR}
  90. - INSTALL_NODE=${WORKSPACE_INSTALL_NODE}
  91. - NPM_REGISTRY=${WORKSPACE_NPM_REGISTRY}
  92. - NPM_FETCH_RETRIES=${WORKSPACE_NPM_FETCH_RETRIES}
  93. - NPM_FETCH_RETRY_FACTOR=${WORKSPACE_NPM_FETCH_RETRY_FACTOR}
  94. - NPM_FETCH_RETRY_MINTIMEOUT=${WORKSPACE_NPM_FETCH_RETRY_MINTIMEOUT}
  95. - NPM_FETCH_RETRY_MAXTIMEOUT=${WORKSPACE_NPM_FETCH_RETRY_MAXTIMEOUT}
  96. - INSTALL_PNPM=${WORKSPACE_INSTALL_PNPM}
  97. - INSTALL_YARN=${WORKSPACE_INSTALL_YARN}
  98. - INSTALL_NPM_GULP=${WORKSPACE_INSTALL_NPM_GULP}
  99. - INSTALL_NPM_BOWER=${WORKSPACE_INSTALL_NPM_BOWER}
  100. - INSTALL_NPM_VUE_CLI=${WORKSPACE_INSTALL_NPM_VUE_CLI}
  101. - INSTALL_NPM_ANGULAR_CLI=${WORKSPACE_INSTALL_NPM_ANGULAR_CLI}
  102. - INSTALL_DRUSH=${WORKSPACE_INSTALL_DRUSH}
  103. - INSTALL_WP_CLI=${WORKSPACE_INSTALL_WP_CLI}
  104. - INSTALL_DRUPAL_CONSOLE=${WORKSPACE_INSTALL_DRUPAL_CONSOLE}
  105. - INSTALL_AEROSPIKE=${WORKSPACE_INSTALL_AEROSPIKE}
  106. - INSTALL_OCI8=${WORKSPACE_INSTALL_OCI8}
  107. - INSTALL_V8JS=${WORKSPACE_INSTALL_V8JS}
  108. - COMPOSER_GLOBAL_INSTALL=${WORKSPACE_COMPOSER_GLOBAL_INSTALL}
  109. - COMPOSER_AUTH=${WORKSPACE_COMPOSER_AUTH}
  110. - COMPOSER_REPO_PACKAGIST=${WORKSPACE_COMPOSER_REPO_PACKAGIST}
  111. - INSTALL_WORKSPACE_SSH=${WORKSPACE_INSTALL_WORKSPACE_SSH}
  112. - INSTALL_LARAVEL_ENVOY=${WORKSPACE_INSTALL_LARAVEL_ENVOY}
  113. - INSTALL_LARAVEL_INSTALLER=${WORKSPACE_INSTALL_LARAVEL_INSTALLER}
  114. - INSTALL_DEPLOYER=${WORKSPACE_INSTALL_DEPLOYER}
  115. - INSTALL_PRESTISSIMO=${WORKSPACE_INSTALL_PRESTISSIMO}
  116. - INSTALL_LINUXBREW=${WORKSPACE_INSTALL_LINUXBREW}
  117. - INSTALL_MC=${WORKSPACE_INSTALL_MC}
  118. - INSTALL_SYMFONY=${WORKSPACE_INSTALL_SYMFONY}
  119. - INSTALL_PYTHON=${WORKSPACE_INSTALL_PYTHON}
  120. - INSTALL_PYTHON3=${WORKSPACE_INSTALL_PYTHON3}
  121. - INSTALL_IMAGE_OPTIMIZERS=${WORKSPACE_INSTALL_IMAGE_OPTIMIZERS}
  122. - INSTALL_IMAGEMAGICK=${WORKSPACE_INSTALL_IMAGEMAGICK}
  123. - INSTALL_TERRAFORM=${WORKSPACE_INSTALL_TERRAFORM}
  124. - INSTALL_DUSK_DEPS=${WORKSPACE_INSTALL_DUSK_DEPS}
  125. - INSTALL_PG_CLIENT=${WORKSPACE_INSTALL_PG_CLIENT}
  126. - INSTALL_PHALCON=${WORKSPACE_INSTALL_PHALCON}
  127. - INSTALL_SWOOLE=${WORKSPACE_INSTALL_SWOOLE}
  128. - INSTALL_TAINT=${WORKSPACE_INSTALL_TAINT}
  129. - INSTALL_LIBPNG=${WORKSPACE_INSTALL_LIBPNG}
  130. - INSTALL_GRAPHVIZ=${WORKSPACE_INSTALL_GRAPHVIZ}
  131. - INSTALL_IONCUBE=${WORKSPACE_INSTALL_IONCUBE}
  132. - INSTALL_MYSQL_CLIENT=${WORKSPACE_INSTALL_MYSQL_CLIENT}
  133. - INSTALL_PING=${WORKSPACE_INSTALL_PING}
  134. - INSTALL_SSHPASS=${WORKSPACE_INSTALL_SSHPASS}
  135. - INSTALL_INOTIFY=${WORKSPACE_INSTALL_INOTIFY}
  136. - INSTALL_FSWATCH=${WORKSPACE_INSTALL_FSWATCH}
  137. - INSTALL_AST=${WORKSPACE_INSTALL_AST}
  138. - INSTALL_YAML=${WORKSPACE_INSTALL_YAML}
  139. - INSTALL_RDKAFKA=${WORKSPACE_INSTALL_RDKAFKA}
  140. - INSTALL_MAILPARSE=${WORKSPACE_INSTALL_MAILPARSE}
  141. - INSTALL_GIT_PROMPT=${WORKSPACE_INSTALL_GIT_PROMPT}
  142. - INSTALL_XMLRPC=${WORKSPACE_INSTALL_XMLRPC}
  143. - PUID=${WORKSPACE_PUID}
  144. - PGID=${WORKSPACE_PGID}
  145. - CHROME_DRIVER_VERSION=${WORKSPACE_CHROME_DRIVER_VERSION}
  146. - NODE_VERSION=${WORKSPACE_NODE_VERSION}
  147. - YARN_VERSION=${WORKSPACE_YARN_VERSION}
  148. - DRUSH_VERSION=${WORKSPACE_DRUSH_VERSION}
  149. - AST_VERSION=${WORKSPACE_AST_VERSION}
  150. - TZ=${WORKSPACE_TIMEZONE}
  151. - BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID}
  152. - BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN}
  153. - INSTALL_POWERLINE=${WORKSPACE_INSTALL_POWERLINE}
  154. - INSTALL_SUPERVISOR=${WORKSPACE_INSTALL_SUPERVISOR}
  155. - INSTALL_FFMPEG=${WORKSPACE_INSTALL_FFMPEG}
  156. - INSTALL_AUDIOWAVEFORM=${WORKSPACE_INSTALL_AUDIOWAVEFORM}
  157. - INSTALL_WKHTMLTOPDF=${WORKSPACE_INSTALL_WKHTMLTOPDF}
  158. - INSTALL_GNU_PARALLEL=${WORKSPACE_INSTALL_GNU_PARALLEL}
  159. - INSTALL_LNAV=${WORKSPACE_INSTALL_LNAV}
  160. - INSTALL_PROTOC=${WORKSPACE_INSTALL_PROTOC}
  161. - PROTOC_VERSION=${WORKSPACE_PROTOC_VERSION}
  162. - http_proxy
  163. - https_proxy
  164. - no_proxy
  165. volumes:
  166. - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
  167. - docker-in-docker:/certs/client
  168. - ./php-worker/supervisord.d:/etc/supervisord.d
  169. extra_hosts:
  170. - "dockerhost:${DOCKER_HOST_IP}"
  171. ports:
  172. - "${WORKSPACE_SSH_PORT}:22"
  173. - "${WORKSPACE_BROWSERSYNC_HOST_PORT}:3000"
  174. - "${WORKSPACE_BROWSERSYNC_UI_HOST_PORT}:3001"
  175. - "${WORKSPACE_VUE_CLI_SERVE_HOST_PORT}:8080"
  176. - "${WORKSPACE_VUE_CLI_UI_HOST_PORT}:8000"
  177. - "${WORKSPACE_ANGULAR_CLI_SERVE_HOST_PORT}:4200"
  178. tty: true
  179. environment:
  180. - PHP_IDE_CONFIG=${PHP_IDE_CONFIG}
  181. - DOCKER_HOST=tcp://docker-in-docker:2376
  182. - DOCKER_TLS_VERIFY=1
  183. - DOCKER_TLS_CERTDIR=/certs
  184. - DOCKER_CERT_PATH=/certs/client
  185. networks:
  186. - frontend
  187. - backend
  188. links:
  189. - docker-in-docker
  190. ### PHP-FPM ##############################################
  191. php-fpm:
  192. build:
  193. context: ./php-fpm
  194. args:
  195. - CHANGE_SOURCE=${CHANGE_SOURCE}
  196. - BASE_IMAGE_TAG_PREFIX=${PHP_FPM_BASE_IMAGE_TAG_PREFIX}
  197. - LARADOCK_PHP_VERSION=${PHP_VERSION}
  198. - LARADOCK_PHALCON_VERSION=${PHALCON_VERSION}
  199. - INSTALL_BZ2=${PHP_FPM_INSTALL_BZ2}
  200. - INSTALL_GMP=${PHP_FPM_INSTALL_GMP}
  201. - INSTALL_XDEBUG=${PHP_FPM_INSTALL_XDEBUG}
  202. - INSTALL_PCOV=${PHP_FPM_INSTALL_PCOV}
  203. - INSTALL_PHPDBG=${PHP_FPM_INSTALL_PHPDBG}
  204. - INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE}
  205. - INSTALL_SSH2=${PHP_FPM_INSTALL_SSH2}
  206. - INSTALL_SOAP=${PHP_FPM_INSTALL_SOAP}
  207. - INSTALL_XSL=${PHP_FPM_INSTALL_XSL}
  208. - INSTALL_SMB=${PHP_FPM_INSTALL_SMB}
  209. - INSTALL_IMAP=${PHP_FPM_INSTALL_IMAP}
  210. - INSTALL_MONGO=${PHP_FPM_INSTALL_MONGO}
  211. - INSTALL_AMQP=${PHP_FPM_INSTALL_AMQP}
  212. - INSTALL_CASSANDRA=${PHP_FPM_INSTALL_CASSANDRA}
  213. - INSTALL_GEARMAN=${PHP_FPM_INSTALL_GEARMAN}
  214. - INSTALL_MSSQL=${PHP_FPM_INSTALL_MSSQL}
  215. - INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH}
  216. - INSTALL_PHPREDIS=${PHP_FPM_INSTALL_PHPREDIS}
  217. - INSTALL_MEMCACHED=${PHP_FPM_INSTALL_MEMCACHED}
  218. - INSTALL_OPCACHE=${PHP_FPM_INSTALL_OPCACHE}
  219. - INSTALL_EXIF=${PHP_FPM_INSTALL_EXIF}
  220. - INSTALL_AEROSPIKE=${PHP_FPM_INSTALL_AEROSPIKE}
  221. - INSTALL_OCI8=${PHP_FPM_INSTALL_OCI8}
  222. - INSTALL_MYSQLI=${PHP_FPM_INSTALL_MYSQLI}
  223. - INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
  224. - INSTALL_PG_CLIENT=${PHP_FPM_INSTALL_PG_CLIENT}
  225. - INSTALL_POSTGIS=${PHP_FPM_INSTALL_POSTGIS}
  226. - INSTALL_INTL=${PHP_FPM_INSTALL_INTL}
  227. - INSTALL_GHOSTSCRIPT=${PHP_FPM_INSTALL_GHOSTSCRIPT}
  228. - INSTALL_LDAP=${PHP_FPM_INSTALL_LDAP}
  229. - INSTALL_PHALCON=${PHP_FPM_INSTALL_PHALCON}
  230. - INSTALL_SWOOLE=${PHP_FPM_INSTALL_SWOOLE}
  231. - INSTALL_TAINT=${PHP_FPM_INSTALL_TAINT}
  232. - INSTALL_IMAGE_OPTIMIZERS=${PHP_FPM_INSTALL_IMAGE_OPTIMIZERS}
  233. - INSTALL_IMAGEMAGICK=${PHP_FPM_INSTALL_IMAGEMAGICK}
  234. - INSTALL_CALENDAR=${PHP_FPM_INSTALL_CALENDAR}
  235. - INSTALL_FAKETIME=${PHP_FPM_INSTALL_FAKETIME}
  236. - INSTALL_IONCUBE=${PHP_FPM_INSTALL_IONCUBE}
  237. - INSTALL_APCU=${PHP_FPM_INSTALL_APCU}
  238. - INSTALL_CACHETOOL=${PHP_FPM_INSTALL_CACHETOOL}
  239. - INSTALL_YAML=${PHP_FPM_INSTALL_YAML}
  240. - INSTALL_RDKAFKA=${PHP_FPM_INSTALL_RDKAFKA}
  241. - INSTALL_GETTEXT=${PHP_FPM_INSTALL_GETTEXT}
  242. - INSTALL_ADDITIONAL_LOCALES=${PHP_FPM_INSTALL_ADDITIONAL_LOCALES}
  243. - INSTALL_MYSQL_CLIENT=${PHP_FPM_INSTALL_MYSQL_CLIENT}
  244. - INSTALL_PING=${PHP_FPM_INSTALL_PING}
  245. - INSTALL_SSHPASS=${PHP_FPM_INSTALL_SSHPASS}
  246. - INSTALL_MAILPARSE=${PHP_FPM_INSTALL_MAILPARSE}
  247. - INSTALL_PCNTL=${PHP_FPM_INSTALL_PCNTL}
  248. - ADDITIONAL_LOCALES=${PHP_FPM_ADDITIONAL_LOCALES}
  249. - INSTALL_FFMPEG=${PHP_FPM_FFMPEG}
  250. - INSTALL_AUDIOWAVEFORM=${PHP_FPM_AUDIOWAVEFORM}
  251. - INSTALL_WKHTMLTOPDF=${PHP_FPM_INSTALL_WKHTMLTOPDF}
  252. - INSTALL_XHPROF=${PHP_FPM_INSTALL_XHPROF}
  253. - INSTALL_XMLRPC=${PHP_FPM_INSTALL_XMLRPC}
  254. - DOWNGRADE_OPENSSL_TLS_AND_SECLEVEL=${PHP_DOWNGRADE_OPENSSL_TLS_AND_SECLEVEL}
  255. - PUID=${PHP_FPM_PUID}
  256. - PGID=${PHP_FPM_PGID}
  257. - LOCALE=${PHP_FPM_DEFAULT_LOCALE}
  258. - PHP_FPM_NEW_RELIC=${PHP_FPM_NEW_RELIC}
  259. - PHP_FPM_NEW_RELIC_KEY=${PHP_FPM_NEW_RELIC_KEY}
  260. - PHP_FPM_NEW_RELIC_APP_NAME=${PHP_FPM_NEW_RELIC_APP_NAME}
  261. - http_proxy
  262. - https_proxy
  263. - no_proxy
  264. volumes:
  265. - ./php-fpm/php${PHP_VERSION}.ini:/usr/local/etc/php/php.ini
  266. - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
  267. - docker-in-docker:/certs/client
  268. expose:
  269. - "9000"
  270. extra_hosts:
  271. - "dockerhost:${DOCKER_HOST_IP}"
  272. environment:
  273. - PHP_IDE_CONFIG=${PHP_IDE_CONFIG}
  274. - DOCKER_HOST=tcp://docker-in-docker:2376
  275. - DOCKER_TLS_VERIFY=1
  276. - DOCKER_TLS_CERTDIR=/certs
  277. - DOCKER_CERT_PATH=/certs/client
  278. - FAKETIME=${PHP_FPM_FAKETIME}
  279. depends_on:
  280. - workspace
  281. networks:
  282. - backend
  283. links:
  284. - docker-in-docker
  285. ### PHP Worker ############################################
  286. php-worker:
  287. build:
  288. context: ./php-worker
  289. args:
  290. - CHANGE_SOURCE=${CHANGE_SOURCE}
  291. - LARADOCK_PHP_VERSION=${PHP_VERSION}
  292. - PHALCON_VERSION=${PHALCON_VERSION}
  293. - INSTALL_BZ2=${PHP_WORKER_INSTALL_BZ2}
  294. - INSTALL_GD=${PHP_WORKER_INSTALL_GD}
  295. - INSTALL_IMAGEMAGICK=${PHP_WORKER_INSTALL_IMAGEMAGICK}
  296. - INSTALL_GMP=${PHP_WORKER_INSTALL_GMP}
  297. - INSTALL_PGSQL=${PHP_WORKER_INSTALL_PGSQL}
  298. - INSTALL_BCMATH=${PHP_WORKER_INSTALL_BCMATH}
  299. - INSTALL_OCI8=${PHP_WORKER_INSTALL_OCI8}
  300. - INSTALL_PHALCON=${PHP_WORKER_INSTALL_PHALCON}
  301. - INSTALL_SOAP=${PHP_WORKER_INSTALL_SOAP}
  302. - INSTALL_ZIP_ARCHIVE=${PHP_WORKER_INSTALL_ZIP_ARCHIVE}
  303. - INSTALL_MYSQL_CLIENT=${PHP_WORKER_INSTALL_MYSQL_CLIENT}
  304. - INSTALL_AMQP=${PHP_WORKER_INSTALL_AMQP}
  305. - INSTALL_CASSANDRA=${PHP_WORKER_INSTALL_CASSANDRA}
  306. - INSTALL_GEARMAN=${PHP_WORKER_INSTALL_GEARMAN}
  307. - INSTALL_GHOSTSCRIPT=${PHP_WORKER_INSTALL_GHOSTSCRIPT}
  308. - INSTALL_SWOOLE=${PHP_WORKER_INSTALL_SWOOLE}
  309. - INSTALL_TAINT=${PHP_WORKER_INSTALL_TAINT}
  310. - INSTALL_FFMPEG=${PHP_WORKER_INSTALL_FFMPEG}
  311. - INSTALL_AUDIOWAVEFORM=${PHP_WORKER_INSTALL_AUDIOWAVEFORM}
  312. - INSTALL_REDIS=${PHP_WORKER_INSTALL_REDIS}
  313. - INSTALL_IMAP=${PHP_WORKER_INSTALL_IMAP}
  314. - INSTALL_XMLRPC=${PHP_WORKER_INSTALL_XMLRPC}
  315. - PUID=${PHP_WORKER_PUID}
  316. - PGID=${PHP_WORKER_PGID}
  317. volumes:
  318. - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
  319. - ./php-worker/supervisord.d:/etc/supervisord.d
  320. depends_on:
  321. - workspace
  322. extra_hosts:
  323. - "dockerhost:${DOCKER_HOST_IP}"
  324. networks:
  325. - backend
  326. ### Laravel Horizon ############################################
  327. laravel-horizon:
  328. build:
  329. context: ./laravel-horizon
  330. args:
  331. - CHANGE_SOURCE=${CHANGE_SOURCE}
  332. - LARADOCK_PHP_VERSION=${PHP_VERSION}
  333. - INSTALL_BZ2=${LARAVEL_HORIZON_INSTALL_BZ2}
  334. - INSTALL_GD=${LARAVEL_HORIZON_INSTALL_GD}
  335. - INSTALL_GMP=${LARAVEL_HORIZON_INSTALL_GMP}
  336. - INSTALL_IMAGEMAGICK=${LARAVEL_HORIZON_INSTALL_IMAGEMAGICK}
  337. - INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
  338. - INSTALL_ZIP_ARCHIVE=${LARAVEL_HORIZON_INSTALL_ZIP_ARCHIVE}
  339. - INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH}
  340. - INSTALL_MEMCACHED=${PHP_FPM_INSTALL_MEMCACHED}
  341. - INSTALL_SOCKETS=${LARAVEL_HORIZON_INSTALL_SOCKETS}
  342. - INSTALL_YAML=${LARAVEL_HORIZON_INSTALL_YAML}
  343. - INSTALL_CASSANDRA=${PHP_FPM_INSTALL_CASSANDRA}
  344. - INSTALL_PHPREDIS=${LARAVEL_HORIZON_INSTALL_PHPREDIS}
  345. - INSTALL_MONGO=${LARAVEL_HORIZON_INSTALL_MONGO}
  346. - INSTALL_FFMPEG=${LARAVEL_HORIZON_INSTALL_FFMPEG}
  347. - INSTALL_AUDIOWAVEFORM=${LARAVEL_HORIZON_INSTALL_AUDIOWAVEFORM}
  348. - PUID=${LARAVEL_HORIZON_PUID}
  349. - PGID=${LARAVEL_HORIZON_PGID}
  350. volumes:
  351. - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
  352. - ./laravel-horizon/supervisord.d:/etc/supervisord.d
  353. depends_on:
  354. - workspace
  355. extra_hosts:
  356. - "dockerhost:${DOCKER_HOST_IP}"
  357. networks:
  358. - backend
  359. ### NGINX Server #########################################
  360. nginx:
  361. build:
  362. context: ./nginx
  363. args:
  364. - CHANGE_SOURCE=${CHANGE_SOURCE}
  365. - PHP_UPSTREAM_CONTAINER=${NGINX_PHP_UPSTREAM_CONTAINER}
  366. - PHP_UPSTREAM_PORT=${NGINX_PHP_UPSTREAM_PORT}
  367. - http_proxy
  368. - https_proxy
  369. - no_proxy
  370. volumes:
  371. - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
  372. - ${NGINX_HOST_LOG_PATH}:/var/log/nginx
  373. - ${NGINX_SITES_PATH}:/etc/nginx/sites-available
  374. - ${NGINX_SSL_PATH}:/etc/nginx/ssl
  375. ports:
  376. - "${NGINX_HOST_HTTP_PORT}:80"
  377. - "${NGINX_HOST_HTTPS_PORT}:443"
  378. - "${VARNISH_BACKEND_PORT}:81"
  379. depends_on:
  380. - php-fpm
  381. networks:
  382. - frontend
  383. - backend
  384. ### Blackfire ########################################
  385. blackfire:
  386. image: blackfire/blackfire
  387. environment:
  388. - BLACKFIRE_SERVER_ID=${BLACKFIRE_SERVER_ID}
  389. - BLACKFIRE_SERVER_TOKEN=${BLACKFIRE_SERVER_TOKEN}
  390. depends_on:
  391. - php-fpm
  392. networks:
  393. - backend
  394. ### Apache Server ########################################
  395. apache2:
  396. build:
  397. context: ./apache2
  398. args:
  399. - PHP_UPSTREAM_CONTAINER=${APACHE_PHP_UPSTREAM_CONTAINER}
  400. - PHP_UPSTREAM_PORT=${APACHE_PHP_UPSTREAM_PORT}
  401. - PHP_UPSTREAM_TIMEOUT=${APACHE_PHP_UPSTREAM_TIMEOUT}
  402. - DOCUMENT_ROOT=${APACHE_DOCUMENT_ROOT}
  403. - APACHE_INSTALL_HTTP2=${APACHE_INSTALL_HTTP2}
  404. volumes:
  405. - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
  406. - ${APACHE_HOST_LOG_PATH}:/var/log/apache2
  407. - ${APACHE_SITES_PATH}:/etc/apache2/sites-available
  408. ports:
  409. - "${APACHE_HOST_HTTP_PORT}:80"
  410. - "${APACHE_HOST_HTTPS_PORT}:443"
  411. depends_on:
  412. - php-fpm
  413. networks:
  414. - frontend
  415. - backend
  416. ### HHVM #################################################
  417. hhvm:
  418. build: ./hhvm
  419. volumes:
  420. - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
  421. expose:
  422. - "9000"
  423. depends_on:
  424. - workspace
  425. networks:
  426. - frontend
  427. - backend
  428. ### Minio ################################################
  429. minio:
  430. build: ./minio
  431. volumes:
  432. - ${DATA_PATH_HOST}/minio/data:/export
  433. - ${DATA_PATH_HOST}/minio/config:/root/.minio
  434. ports:
  435. - "${MINIO_PORT}:9000"
  436. environment:
  437. - MINIO_ACCESS_KEY=access
  438. - MINIO_SECRET_KEY=secretkey
  439. networks:
  440. - frontend
  441. - backend
  442. ### MySQL ################################################
  443. mysql:
  444. build:
  445. context: ./mysql
  446. args:
  447. - MYSQL_VERSION=${MYSQL_VERSION}
  448. environment:
  449. - MYSQL_DATABASE=${MYSQL_DATABASE}
  450. - MYSQL_USER=${MYSQL_USER}
  451. - MYSQL_PASSWORD=${MYSQL_PASSWORD}
  452. - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
  453. - TZ=${WORKSPACE_TIMEZONE}
  454. volumes:
  455. - ${DATA_PATH_HOST}/mysql:/var/lib/mysql
  456. - ${MYSQL_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
  457. ports:
  458. - "${MYSQL_PORT}:3306"
  459. networks:
  460. - backend
  461. ### Percona ################################################
  462. percona:
  463. build:
  464. context: ./percona
  465. environment:
  466. - MYSQL_DATABASE=${PERCONA_DATABASE}
  467. - MYSQL_USER=${PERCONA_USER}
  468. - MYSQL_PASSWORD=${PERCONA_PASSWORD}
  469. - MYSQL_ROOT_PASSWORD=${PERCONA_ROOT_PASSWORD}
  470. volumes:
  471. - ${DATA_PATH_HOST}/percona:/var/lib/mysql
  472. - ${PERCONA_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
  473. ports:
  474. - "${PERCONA_PORT}:3306"
  475. networks:
  476. - backend
  477. ### MSSQL ################################################
  478. mssql:
  479. build:
  480. context: ./mssql
  481. environment:
  482. - MSSQL_PID=Express
  483. - MSSQL_DATABASE=${MSSQL_DATABASE}
  484. - SA_PASSWORD=${MSSQL_PASSWORD}
  485. - ACCEPT_EULA=Y
  486. volumes:
  487. - ${DATA_PATH_HOST}/mssql:/var/opt/mssql
  488. ports:
  489. - "${MSSQL_PORT}:1433"
  490. networks:
  491. - backend
  492. ### MariaDB ##############################################
  493. mariadb:
  494. build:
  495. context: ./mariadb
  496. args:
  497. - http_proxy
  498. - https_proxy
  499. - no_proxy
  500. - MARIADB_VERSION=${MARIADB_VERSION}
  501. volumes:
  502. - ${DATA_PATH_HOST}/mariadb:/var/lib/mysql
  503. - ${MARIADB_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
  504. ports:
  505. - "${MARIADB_PORT}:3306"
  506. environment:
  507. - TZ=${WORKSPACE_TIMEZONE}
  508. - MYSQL_DATABASE=${MARIADB_DATABASE}
  509. - MYSQL_USER=${MARIADB_USER}
  510. - MYSQL_PASSWORD=${MARIADB_PASSWORD}
  511. - MYSQL_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
  512. networks:
  513. - backend
  514. ### PostgreSQL ###########################################
  515. postgres:
  516. build:
  517. context: ./postgres
  518. args:
  519. - POSTGRES_VERSION=${POSTGRES_VERSION}
  520. volumes:
  521. - ${DATA_PATH_HOST}/postgres:/var/lib/postgresql/data
  522. - ${POSTGRES_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
  523. ports:
  524. - "${POSTGRES_PORT}:5432"
  525. environment:
  526. - POSTGRES_DB=${POSTGRES_DB}
  527. - POSTGRES_USER=${POSTGRES_USER}
  528. - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
  529. - GITLAB_POSTGRES_INIT=${GITLAB_POSTGRES_INIT}
  530. - GITLAB_POSTGRES_USER=${GITLAB_POSTGRES_USER}
  531. - GITLAB_POSTGRES_PASSWORD=${GITLAB_POSTGRES_PASSWORD}
  532. - GITLAB_POSTGRES_DB=${GITLAB_POSTGRES_DB}
  533. - JUPYTERHUB_POSTGRES_INIT=${JUPYTERHUB_POSTGRES_INIT}
  534. - JUPYTERHUB_POSTGRES_USER=${JUPYTERHUB_POSTGRES_USER}
  535. - JUPYTERHUB_POSTGRES_PASSWORD=${JUPYTERHUB_POSTGRES_PASSWORD}
  536. - JUPYTERHUB_POSTGRES_DB=${JUPYTERHUB_POSTGRES_DB}
  537. - SONARQUBE_POSTGRES_INIT=${SONARQUBE_POSTGRES_INIT}
  538. - SONARQUBE_POSTGRES_DB=${SONARQUBE_POSTGRES_DB}
  539. - SONARQUBE_POSTGRES_USER=${SONARQUBE_POSTGRES_USER}
  540. - SONARQUBE_POSTGRES_PASSWORD=${SONARQUBE_POSTGRES_PASSWORD}
  541. - POSTGRES_CONFLUENCE_INIT=${CONFLUENCE_POSTGRES_INIT}
  542. - POSTGRES_CONFLUENCE_DB=${CONFLUENCE_POSTGRES_DB}
  543. - POSTGRES_CONFLUENCE_USER=${CONFLUENCE_POSTGRES_USER}
  544. - POSTGRES_CONFLUENCE_PASSWORD=${CONFLUENCE_POSTGRES_PASSWORD}
  545. networks:
  546. - backend
  547. ### PostgreSQL PostGis ###################################
  548. postgres-postgis:
  549. build: ./postgres-postgis
  550. volumes:
  551. - ${DATA_PATH_HOST}/postgres:/var/lib/postgresql/data
  552. ports:
  553. - "${POSTGRES_PORT}:5432"
  554. environment:
  555. - POSTGRES_DB=${POSTGRES_DB}
  556. - POSTGRES_USER=${POSTGRES_USER}
  557. - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
  558. networks:
  559. - backend
  560. ### Neo4j ################################################
  561. neo4j:
  562. ports:
  563. - '7401:7474'
  564. - '7402:7687'
  565. environment:
  566. - NEO4J_AUTH=none
  567. volumes:
  568. - ${DATA_PATH_HOST}/neo4j/data:/data
  569. - ${DATA_PATH_HOST}/neo4j/logs:/logs
  570. image: 'neo4j:latest'
  571. networks:
  572. - backend
  573. ### MongoDB ##############################################
  574. mongo:
  575. build: ./mongo
  576. ports:
  577. - "${MONGODB_PORT}:27017"
  578. volumes:
  579. - ${DATA_PATH_HOST}/mongo:/data/db
  580. - ${DATA_PATH_HOST}/mongo_config:/data/configdb
  581. networks:
  582. - backend
  583. ### RethinkDB ##############################################
  584. rethinkdb:
  585. build: ./rethinkdb
  586. ports:
  587. - "${RETHINKDB_PORT}:8080"
  588. volumes:
  589. - ${DATA_PATH_HOST}/rethinkdb:/data/rethinkdb_data
  590. networks:
  591. - backend
  592. ### ClickHouse #############################################
  593. clickhouse:
  594. build:
  595. context: ./clickhouse
  596. args:
  597. - CLICKHOUSE_VERSION=${CLICKHOUSE_VERSION}
  598. - CLICKHOUSE_GOSU_VERSION=${CLICKHOUSE_GOSU_VERSION}
  599. environment:
  600. - CLICKHOUSE_USER=${CLICKHOUSE_USER}
  601. - CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD}
  602. volumes:
  603. - ${DATA_PATH_HOST}/clickhouse:/var/lib/clickhouse
  604. - ${CLICKHOUSE_CUSTOM_CONFIG}:/etc/clickhouse-server/config.xml
  605. - ${CLICKHOUSE_USERS_CUSTOM_CONFIG}:/etc/clickhouse-server/users.xml
  606. - ${CLICKHOUSE_HOST_LOG_PATH}:/var/log/clickhouse
  607. - ${CLICKHOUSE_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
  608. links:
  609. - workspace
  610. ports:
  611. - "${CLICKHOUSE_HTTP_PORT}:8123"
  612. - "${CLICKHOUSE_CLIENT_PORT}:9000"
  613. - "${CLICKHOUSE_NATIVE_PORT}:9009"
  614. ulimits:
  615. nproc: 65535
  616. nofile:
  617. soft: 262144
  618. hard: 262144
  619. networks:
  620. # - frontend
  621. - backend
  622. ### Redis ################################################
  623. redis:
  624. build: ./redis
  625. volumes:
  626. - ${DATA_PATH_HOST}/redis:/data
  627. ports:
  628. - "${REDIS_PORT}:6379"
  629. networks:
  630. - backend
  631. ### Redis Cluster ##########################################
  632. redis-cluster:
  633. build: ./redis-cluster
  634. ports:
  635. - "${REDIS_CLUSTER_PORT_RANGE}:7000-7005"
  636. networks:
  637. - backend
  638. ### ZooKeeper #########################################
  639. zookeeper:
  640. build: ./zookeeper
  641. volumes:
  642. - ${DATA_PATH_HOST}/zookeeper/data:/data
  643. - ${DATA_PATH_HOST}/zookeeper/datalog:/datalog
  644. ports:
  645. - "${ZOOKEEPER_PORT}:2181"
  646. networks:
  647. - backend
  648. ### Aerospike ##########################################
  649. aerospike:
  650. build: ./aerospike
  651. volumes:
  652. - workspace
  653. - ${DATA_PATH_HOST}/aerospike:/opt/aerospike/data
  654. ports:
  655. - "${AEROSPIKE_SERVICE_PORT}:3000"
  656. - "${AEROSPIKE_FABRIC_PORT}:3001"
  657. - "${AEROSPIKE_HEARTBEAT_PORT}:3002"
  658. - "${AEROSPIKE_INFO_PORT}:3003"
  659. environment:
  660. - STORAGE_GB=${AEROSPIKE_STORAGE_GB}
  661. - MEM_GB=${AEROSPIKE_MEM_GB}
  662. - NAMESPACE=${AEROSPIKE_NAMESPACE}
  663. networks:
  664. - backend
  665. ### Memcached ############################################
  666. memcached:
  667. build: ./memcached
  668. volumes:
  669. - ${DATA_PATH_HOST}/memcached:/var/lib/memcached
  670. ports:
  671. - "${MEMCACHED_HOST_PORT}:11211"
  672. depends_on:
  673. - php-fpm
  674. networks:
  675. - backend
  676. ### Beanstalkd ###########################################
  677. beanstalkd:
  678. build: ./beanstalkd
  679. ports:
  680. - "${BEANSTALKD_HOST_PORT}:11300"
  681. privileged: true
  682. depends_on:
  683. - php-fpm
  684. networks:
  685. - backend
  686. ### SQS #############################################
  687. sqs:
  688. build: ./sqs
  689. ports:
  690. - "${SQS_NODE_HOST_PORT}:9324"
  691. - "${SQS_MANAGEMENT_HTTP_HOST_PORT}:9325"
  692. privileged: true
  693. hostname: laradock-sqs
  694. volumes:
  695. - ${DATA_PATH_HOST}/sqs:/opt/custom
  696. networks:
  697. - frontend
  698. - backend
  699. ### RabbitMQ #############################################
  700. rabbitmq:
  701. build: ./rabbitmq
  702. ports:
  703. - "${RABBITMQ_NODE_HOST_PORT}:5672"
  704. - "${RABBITMQ_MANAGEMENT_HTTP_HOST_PORT}:15672"
  705. - "${RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT}:15671"
  706. privileged: true
  707. environment:
  708. - RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
  709. - RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
  710. hostname: laradock-rabbitmq
  711. volumes:
  712. - ${DATA_PATH_HOST}/rabbitmq:/var/lib/rabbitmq
  713. depends_on:
  714. - php-fpm
  715. networks:
  716. - backend
  717. ### Mercure #############################################
  718. mercure:
  719. build: ./mercure
  720. ports:
  721. - "${MERCURE_NODE_HOST_HTTP_PORT}:80"
  722. - "${MERCURE_NODE_HOST_HTTPS_PORT}:443"
  723. privileged: true
  724. environment:
  725. - MERCURE_PUBLISHER_JWT_KEY=${MERCURE_PUBLISHER_JWT_KEY}
  726. - MERCURE_SUBSCRIBER_JWT_KEY=${MERCURE_SUBSCRIBER_JWT_KEY}
  727. - DEBUG=${MERCURE_DEBUG}
  728. - SERVER_NAME=${MERCURE_SERVER_NAME}
  729. - MERCURE_EXTRA_DIRECTIVES=cors_allowed_origins *\npublish_allowed_origins http://localhost:${MERCURE_NODE_HOST_HTTP_PORT} https://localhost:${MERCURE_NODE_HOST_HTTP_PORT}
  730. hostname: laradock-mercure
  731. networks:
  732. - frontend
  733. - backend
  734. ### Cassandra ############################################
  735. cassandra:
  736. build: ./cassandra
  737. ports:
  738. - "${CASSANDRA_TRANSPORT_PORT_NUMBER}:7000"
  739. - "${CASSANDRA_JMX_PORT_NUMBER}:7199"
  740. - "${CASSANDRA_CQL_PORT_NUMBER}:9042"
  741. privileged: true
  742. environment:
  743. - CASSANDRA_VERSION=${CASSANDRA_VERSION}
  744. - CASSANDRA_TRANSPORT_PORT_NUMBER=${CASSANDRA_TRANSPORT_PORT_NUMBER}
  745. - CASSANDRA_JMX_PORT_NUMBER=${CASSANDRA_JMX_PORT_NUMBER}
  746. - CASSANDRA_CQL_PORT_NUMBER=${CASSANDRA_CQL_PORT_NUMBER}
  747. - CASSANDRA_USER=${CASSANDRA_USER}
  748. - CASSANDRA_PASSWORD_SEEDER=${CASSANDRA_PASSWORD_SEEDER}
  749. - CASSANDRA_PASSWORD=${CASSANDRA_PASSWORD}
  750. - CASSANDRA_NUM_TOKENS=${CASSANDRA_NUM_TOKENS}
  751. - CASSANDRA_HOST=${CASSANDRA_HOST}
  752. - CASSANDRA_CLUSTER_NAME=${CASSANDRA_CLUSTER_NAME}
  753. - CASSANDRA_SEEDS=${CASSANDRA_SEEDS}
  754. - CASSANDRA_ENDPOINT_SNITCH=${CASSANDRA_ENDPOINT_SNITCH}
  755. - CASSANDRA_ENABLE_RPC=${CASSANDRA_ENABLE_RPC}
  756. - CASSANDRA_DATACENTER=${CASSANDRA_DATACENTER}
  757. - CASSANDRA_RACK=${CASSANDRA_RACK}
  758. hostname: laradock-cassandra
  759. volumes:
  760. - ${DATA_PATH_HOST}/cassandra:/var/lib/cassandra
  761. depends_on:
  762. - php-fpm
  763. networks:
  764. - backend
  765. ### Gearman ############################################
  766. gearman:
  767. build: ./gearman
  768. ports:
  769. - "${GEARMAN_PORT}:4730"
  770. privileged: true
  771. environment:
  772. - GEARMAN_VERSION=${GEARMAN_VERSION}
  773. - GEARMAN_VERBOSE=${GEARMAN_VERBOSE}
  774. - GEARMAN_QUEUE_TYPE=${GEARMAN_QUEUE_TYPE}
  775. - GEARMAN_THREADS=${GEARMAN_THREADS}
  776. - GEARMAN_BACKLOG=${GEARMAN_BACKLOG}
  777. - GEARMAN_FILE_DESCRIPTORS=${GEARMAN_FILE_DESCRIPTORS}
  778. - GEARMAN_JOB_RETRIES=${GEARMAN_JOB_RETRIES}
  779. - GEARMAN_ROUND_ROBIN=${GEARMAN_ROUND_ROBIN}
  780. - GEARMAN_WORKER_WAKEUP=${GEARMAN_WORKER_WAKEUP}
  781. - GEARMAN_KEEPALIVE=${GEARMAN_KEEPALIVE}
  782. - GEARMAN_KEEPALIVE_IDLE=${GEARMAN_KEEPALIVE_IDLE}
  783. - GEARMAN_KEEPALIVE_INTERVAL=${GEARMAN_KEEPALIVE_INTERVAL}
  784. - GEARMAN_KEEPALIVE_COUNT=${GEARMAN_KEEPALIVE_COUNT}
  785. - GEARMAN_MYSQL_HOST=${GEARMAN_MYSQL_HOST}
  786. - GEARMAN_MYSQL_PORT=${GEARMAN_MYSQL_PORT}
  787. - GEARMAN_MYSQL_USER=${GEARMAN_MYSQL_USER}
  788. - GEARMAN_MYSQL_PASSWORD=${GEARMAN_MYSQL_PASSWORD}
  789. - GEARMAN_MYSQL_PASSWORD_FILE=${GEARMAN_MYSQL_PASSWORD_FILE}
  790. - GEARMAN_MYSQL_DB=${GEARMAN_MYSQL_DB}
  791. - GEARMAN_MYSQL_TABLE=${GEARMAN_MYSQL_TABLE}
  792. hostname: laradock-gearman
  793. depends_on:
  794. - php-fpm
  795. networks:
  796. - backend
  797. ### Beanstalkd Console ###################################
  798. beanstalkd-console:
  799. build: ./beanstalkd-console
  800. ports:
  801. - "${BEANSTALKD_CONSOLE_HOST_PORT}:2080"
  802. depends_on:
  803. - beanstalkd
  804. networks:
  805. - backend
  806. ### Caddy Server #########################################
  807. caddy:
  808. build: ./caddy
  809. volumes:
  810. - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
  811. - ${CADDY_CONFIG_PATH}:/etc/caddy
  812. - ${CADDY_HOST_LOG_PATH}:/var/log/caddy
  813. - ${DATA_PATH_HOST}:/root/.caddy
  814. ports:
  815. - "${CADDY_HOST_HTTP_PORT}:80"
  816. - "${CADDY_HOST_HTTPS_PORT}:443"
  817. depends_on:
  818. - php-fpm
  819. networks:
  820. - frontend
  821. - backend
  822. ### phpMyAdmin ###########################################
  823. phpmyadmin:
  824. build: ./phpmyadmin
  825. environment:
  826. - PMA_ARBITRARY=1
  827. - MYSQL_USER=${PMA_USER}
  828. - MYSQL_PASSWORD=${PMA_PASSWORD}
  829. - MYSQL_ROOT_PASSWORD=${PMA_ROOT_PASSWORD}
  830. ports:
  831. - "${PMA_PORT}:80"
  832. depends_on:
  833. - "${PMA_DB_ENGINE}"
  834. networks:
  835. - frontend
  836. - backend
  837. ### Adminer ###########################################
  838. adminer:
  839. build:
  840. context: ./adminer
  841. args:
  842. - INSTALL_MSSQL=${ADM_INSTALL_MSSQL}
  843. environment:
  844. - ADMINER_PLUGINS=${ADM_PLUGINS}
  845. - ADMINER_DESIGN=${ADM_DESIGN}
  846. - ADMINER_DEFAULT_SERVER=${ADM_DEFAULT_SERVER}
  847. ports:
  848. - "${ADM_PORT}:8080"
  849. depends_on:
  850. - php-fpm
  851. networks:
  852. - frontend
  853. - backend
  854. ### pgAdmin ##############################################
  855. pgadmin:
  856. image: dpage/pgadmin4:latest
  857. environment:
  858. - "PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL}"
  859. - "PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}"
  860. ports:
  861. - "${PGADMIN_PORT}:80"
  862. volumes:
  863. - ${DATA_PATH_HOST}/pgadmin:/var/lib/pgadmin
  864. depends_on:
  865. - postgres
  866. networks:
  867. - frontend
  868. - backend
  869. ### MeiliSearch ##########################################
  870. meilisearch:
  871. image: getmeili/meilisearch:latest
  872. volumes:
  873. - ${DATA_PATH_HOST}/meilisearch:/var/lib/meilisearch
  874. ports:
  875. - "${MEILISEARCH_HOST_PORT}:7700"
  876. networks:
  877. - frontend
  878. - backend
  879. ### ElasticSearch ########################################
  880. elasticsearch:
  881. build:
  882. context: ./elasticsearch
  883. args:
  884. - ELK_VERSION=${ELK_VERSION}
  885. volumes:
  886. - elasticsearch:/usr/share/elasticsearch/data
  887. environment:
  888. - cluster.name=laradock-cluster
  889. - node.name=laradock-node
  890. - bootstrap.memory_lock=true
  891. - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  892. - cluster.initial_master_nodes=laradock-node
  893. ulimits:
  894. memlock:
  895. soft: -1
  896. hard: -1
  897. nofile:
  898. soft: 65536
  899. hard: 65536
  900. ports:
  901. - "${ELASTICSEARCH_HOST_HTTP_PORT}:9200"
  902. - "${ELASTICSEARCH_HOST_TRANSPORT_PORT}:9300"
  903. depends_on:
  904. - php-fpm
  905. networks:
  906. - frontend
  907. - backend
  908. ### Logstash ##############################################
  909. logstash:
  910. build:
  911. context: ./logstash
  912. args:
  913. - ELK_VERSION=${ELK_VERSION}
  914. volumes:
  915. - './logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml'
  916. - './logstash/pipeline:/usr/share/logstash/pipeline'
  917. ports:
  918. - '5001:5001'
  919. environment:
  920. LS_JAVA_OPTS: '-Xmx1g -Xms1g'
  921. env_file:
  922. - .env
  923. networks:
  924. - frontend
  925. - backend
  926. depends_on:
  927. - elasticsearch
  928. ### Kibana ##############################################
  929. kibana:
  930. build:
  931. context: ./kibana
  932. args:
  933. - ELK_VERSION=${ELK_VERSION}
  934. ports:
  935. - "${KIBANA_HTTP_PORT}:5601"
  936. depends_on:
  937. - elasticsearch
  938. networks:
  939. - frontend
  940. - backend
  941. ### Dejavu ##############################################
  942. dejavu:
  943. build:
  944. context: ./dejavu
  945. ports:
  946. - "${DEJAVU_HTTP_PORT}:1358"
  947. depends_on:
  948. - elasticsearch
  949. networks:
  950. - frontend
  951. - backend
  952. ### Certbot #########################################
  953. certbot:
  954. build:
  955. context: ./certbot
  956. volumes:
  957. - ./data/certbot/certs/:/var/certs
  958. - ./certbot/letsencrypt/:/var/www/letsencrypt
  959. environment:
  960. - CN="fake.domain.com"
  961. - EMAIL="fake.email@gmail.com"
  962. networks:
  963. - frontend
  964. ### MailCatcher ################################################
  965. mailcatcher:
  966. build: ./mailcatcher
  967. ports:
  968. - "1025:1025"
  969. - "1080:1080"
  970. networks:
  971. - frontend
  972. - backend
  973. ### Mailhog ################################################
  974. mailhog:
  975. build: ./mailhog
  976. ports:
  977. - "1025:1025"
  978. - "8025:8025"
  979. networks:
  980. - frontend
  981. - backend
  982. ### MailDev ##############################################
  983. maildev:
  984. build: ./maildev
  985. ports:
  986. - "${MAILDEV_HTTP_PORT}:80"
  987. - "${MAILDEV_SMTP_PORT}:25"
  988. networks:
  989. - frontend
  990. - backend
  991. ### Selenium ###############################################
  992. selenium:
  993. build: ./selenium
  994. ports:
  995. - "${SELENIUM_PORT}:4444"
  996. volumes:
  997. - /dev/shm:/dev/shm
  998. networks:
  999. - frontend
  1000. ### Varnish ##########################################
  1001. proxy:
  1002. container_name: proxy
  1003. build: ./varnish
  1004. expose:
  1005. - ${VARNISH_PORT}
  1006. environment:
  1007. - VARNISH_CONFIG=${VARNISH_CONFIG}
  1008. - CACHE_SIZE=${VARNISH_PROXY1_CACHE_SIZE}
  1009. - VARNISHD_PARAMS=${VARNISHD_PARAMS}
  1010. - VARNISH_PORT=${VARNISH_PORT}
  1011. - BACKEND_HOST=${VARNISH_PROXY1_BACKEND_HOST}
  1012. - BACKEND_PORT=${VARNISH_BACKEND_PORT}
  1013. - VARNISH_SERVER=${VARNISH_PROXY1_SERVER}
  1014. ports:
  1015. - "${VARNISH_PORT}:${VARNISH_PORT}"
  1016. links:
  1017. - workspace
  1018. networks:
  1019. - frontend
  1020. proxy2:
  1021. container_name: proxy2
  1022. build: ./varnish
  1023. expose:
  1024. - ${VARNISH_PORT}
  1025. environment:
  1026. - VARNISH_CONFIG=${VARNISH_CONFIG}
  1027. - CACHE_SIZE=${VARNISH_PROXY2_CACHE_SIZE}
  1028. - VARNISHD_PARAMS=${VARNISHD_PARAMS}
  1029. - VARNISH_PORT=${VARNISH_PORT}
  1030. - BACKEND_HOST=${VARNISH_PROXY2_BACKEND_HOST}
  1031. - BACKEND_PORT=${VARNISH_BACKEND_PORT}
  1032. - VARNISH_SERVER=${VARNISH_PROXY2_SERVER}
  1033. ports:
  1034. - "${VARNISH_PORT}:${VARNISH_PORT}"
  1035. links:
  1036. - workspace
  1037. networks:
  1038. - frontend
  1039. ### HAProxy ####################################
  1040. haproxy:
  1041. build: ./haproxy
  1042. ports:
  1043. - "${HAPROXY_HOST_HTTP_PORT}:8085"
  1044. volumes:
  1045. - /var/run/docker.sock:/var/run/docker.sock
  1046. links:
  1047. - proxy
  1048. - proxy2
  1049. ### Jenkins ###################################################
  1050. jenkins:
  1051. build: ./jenkins
  1052. environment:
  1053. JAVA_OPTS: "-Djava.awt.headless=true"
  1054. ports:
  1055. - "${JENKINS_HOST_SLAVE_AGENT_PORT}:50000"
  1056. - "${JENKINS_HOST_HTTP_PORT}:8080"
  1057. privileged: true
  1058. volumes:
  1059. - ${JENKINS_HOME}:/var/jenkins_home
  1060. - /var/run/docker.sock:/var/run/docker.sock
  1061. networks:
  1062. - frontend
  1063. - backend
  1064. ### Grafana ################################################
  1065. grafana:
  1066. build:
  1067. context: ./grafana
  1068. volumes:
  1069. - ${DATA_PATH_HOST}/grafana:/var/lib/grafana
  1070. ports:
  1071. - "${GRAFANA_PORT}:3000"
  1072. networks:
  1073. - backend
  1074. ### Graylog #######################################
  1075. graylog:
  1076. build: ./graylog
  1077. environment:
  1078. - GRAYLOG_PASSWORD_SECRET=${GRAYLOG_PASSWORD}
  1079. - GRAYLOG_ROOT_PASSWORD_SHA2=${GRAYLOG_SHA256_PASSWORD}
  1080. - GRAYLOG_HTTP_EXTERNAL_URI=http://127.0.0.1:${GRAYLOG_PORT}/
  1081. links:
  1082. - mongo
  1083. - elasticsearch
  1084. depends_on:
  1085. - mongo
  1086. - elasticsearch
  1087. ports:
  1088. # Graylog web interface and REST API
  1089. - ${GRAYLOG_PORT}:9000
  1090. # Syslog TCP
  1091. - ${GRAYLOG_SYSLOG_TCP_PORT}:514
  1092. # Syslog UDP
  1093. - ${GRAYLOG_SYSLOG_UDP_PORT}:514/udp
  1094. # GELF TCP
  1095. - ${GRAYLOG_GELF_TCP_PORT}:12201
  1096. # GELF UDP
  1097. - ${GRAYLOG_GELF_UDP_PORT}:12201/udp
  1098. user: graylog
  1099. volumes:
  1100. - ${DATA_PATH_HOST}/graylog:/usr/share/graylog/data
  1101. networks:
  1102. - backend
  1103. ### Laravel Echo Server #######################################
  1104. laravel-echo-server:
  1105. build:
  1106. context: ./laravel-echo-server
  1107. args:
  1108. - CHANGE_SOURCE=${CHANGE_SOURCE}
  1109. volumes:
  1110. - ./laravel-echo-server/laravel-echo-server.json:/app/laravel-echo-server.json:ro
  1111. ports:
  1112. - "${LARAVEL_ECHO_SERVER_PORT}:6001"
  1113. links:
  1114. - redis
  1115. networks:
  1116. - frontend
  1117. - backend
  1118. ### Solr ################################################
  1119. solr:
  1120. build:
  1121. context: ./solr
  1122. args:
  1123. - SOLR_VERSION=${SOLR_VERSION}
  1124. - SOLR_DATAIMPORTHANDLER_MYSQL=${SOLR_DATAIMPORTHANDLER_MYSQL}
  1125. - SOLR_DATAIMPORTHANDLER_MSSQL=${SOLR_DATAIMPORTHANDLER_MSSQL}
  1126. volumes:
  1127. - ${DATA_PATH_HOST}/solr:/opt/solr/server/solr/mycores
  1128. ports:
  1129. - "${SOLR_PORT}:8983"
  1130. networks:
  1131. - backend
  1132. ### Thumbor #########################################
  1133. thumbor:
  1134. build: ./thumbor
  1135. volumes:
  1136. - ${DATA_PATH_HOST}/thumbor/data:/data
  1137. - ${DATA_PATH_HOST}/thumbor/data:/logs
  1138. ports:
  1139. - "${THUMBOR_PORT}:8000"
  1140. environment:
  1141. - THUMBOR_LOG_FORMAT=${THUMBOR_LOG_FORMAT}
  1142. - THUMBOR_LOG_DATE_FORMAT=${THUMBOR_LOG_DATE_FORMAT}
  1143. - MAX_WIDTH=${MAX_WIDTH}
  1144. - MAX_HEIGHT=${MAX_HEIGHT}
  1145. - MIN_WIDTH=${MIN_WIDTH}
  1146. - MIN_HEIGHT=${MIN_HEIGHT}
  1147. - ALLOWED_SOURCES=${ALLOWED_SOURCES}
  1148. - QUALITY=${QUALITY}
  1149. - WEBP_QUALITY=${WEBP_QUALITY}
  1150. - PNG_COMPRESSION_LEVEL=${PNG_COMPRESSION_LEVEL}
  1151. - AUTO_WEBP=${AUTO_WEBP}
  1152. - MAX_AGE=${MAX_AGE}
  1153. - MAX_AGE_TEMP_IMAGE=${MAX_AGE_TEMP_IMAGE}
  1154. - RESPECT_ORIENTATION=${RESPECT_ORIENTATION}
  1155. - IGNORE_SMART_ERRORS=${IGNORE_SMART_ERRORS}
  1156. - PRESERVE_EXIF_INFO=${PRESERVE_EXIF_INFO}
  1157. - ALLOW_ANIMATED_GIFS=${ALLOW_ANIMATED_GIFS}
  1158. - USE_GIFSICLE_ENGINE=${USE_GIFSICLE_ENGINE}
  1159. - USE_BLACKLIST=${USE_BLACKLIST}
  1160. - LOADER=${LOADER}
  1161. - STORAGE=${STORAGE}
  1162. - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
  1163. - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
  1164. - RESULT_STORAGE=${RESULT_STORAGE}
  1165. - ENGINE=${ENGINE}
  1166. - SECURITY_KEY=${SECURITY_KEY}
  1167. - ALLOW_UNSAFE_URL=${ALLOW_UNSAFE_URL}
  1168. - ALLOW_OLD_URLS=${ALLOW_OLD_URLS}
  1169. - FILE_LOADER_ROOT_PATH=${FILE_LOADER_ROOT_PATH}
  1170. - HTTP_LOADER_CONNECT_TIMEOUT=${HTTP_LOADER_CONNECT_TIMEOUT}
  1171. - HTTP_LOADER_REQUEST_TIMEOUT=${HTTP_LOADER_REQUEST_TIMEOUT}
  1172. - HTTP_LOADER_FOLLOW_REDIRECTS=${HTTP_LOADER_FOLLOW_REDIRECTS}
  1173. - HTTP_LOADER_MAX_REDIRECTS=${HTTP_LOADER_MAX_REDIRECTS}
  1174. - HTTP_LOADER_FORWARD_USER_AGENT=${HTTP_LOADER_FORWARD_USER_AGENT}
  1175. - HTTP_LOADER_DEFAULT_USER_AGENT=${HTTP_LOADER_DEFAULT_USER_AGENT}
  1176. - HTTP_LOADER_PROXY_HOST=${HTTP_LOADER_PROXY_HOST}
  1177. - HTTP_LOADER_PROXY_PORT=${HTTP_LOADER_PROXY_PORT}
  1178. - HTTP_LOADER_PROXY_USERNAME=${HTTP_LOADER_PROXY_USERNAME}
  1179. - HTTP_LOADER_PROXY_PASSWORD=${HTTP_LOADER_PROXY_PASSWORD}
  1180. - HTTP_LOADER_CA_CERTS=${HTTP_LOADER_CA_CERTS}
  1181. - HTTP_LOADER_VALIDATE_CERTS=${HTTP_LOADER_VALIDATE_CERTS}
  1182. - HTTP_LOADER_CLIENT_KEY=${HTTP_LOADER_CLIENT_KEY}
  1183. - HTTP_LOADER_CLIENT_CERT=${HTTP_LOADER_CLIENT_CERT}
  1184. - HTTP_LOADER_CURL_ASYNC_HTTP_CLIENT=${HTTP_LOADER_CURL_ASYNC_HTTP_CLIENT}
  1185. - STORAGE_EXPIRATION_SECONDS=${STORAGE_EXPIRATION_SECONDS}
  1186. - STORES_CRYPTO_KEY_FOR_EACH_IMAGE=${STORES_CRYPTO_KEY_FOR_EACH_IMAGE}
  1187. - FILE_STORAGE_ROOT_PATH=${FILE_STORAGE_ROOT_PATH}
  1188. - UPLOAD_MAX_SIZE=${UPLOAD_MAX_SIZE}
  1189. - UPLOAD_ENABLED=${UPLOAD_ENABLED}
  1190. - UPLOAD_PHOTO_STORAGE=${UPLOAD_PHOTO_STORAGE}
  1191. - UPLOAD_DELETE_ALLOWED=${UPLOAD_DELETE_ALLOWED}
  1192. - UPLOAD_PUT_ALLOWED=${UPLOAD_PUT_ALLOWED}
  1193. - UPLOAD_DEFAULT_FILENAME=${UPLOAD_DEFAULT_FILENAME}
  1194. - MONGO_STORAGE_SERVER_HOST=${MONGO_STORAGE_SERVER_HOST}
  1195. - MONGO_STORAGE_SERVER_PORT=${MONGO_STORAGE_SERVER_PORT}
  1196. - MONGO_STORAGE_SERVER_DB=${MONGO_STORAGE_SERVER_DB}
  1197. - MONGO_STORAGE_SERVER_COLLECTION=${MONGO_STORAGE_SERVER_COLLECTION}
  1198. - REDIS_STORAGE_SERVER_HOST=${REDIS_STORAGE_SERVER_HOST}
  1199. - REDIS_STORAGE_SERVER_PORT=${REDIS_STORAGE_SERVER_PORT}
  1200. - REDIS_STORAGE_SERVER_DB=${REDIS_STORAGE_SERVER_DB}
  1201. - REDIS_STORAGE_SERVER_PASSWORD=${REDIS_STORAGE_SERVER_PASSWORD}
  1202. - REDIS_RESULT_STORAGE_SERVER_HOST=${REDIS_RESULT_STORAGE_SERVER_HOST}
  1203. - REDIS_RESULT_STORAGE_SERVER_PORT=${REDIS_RESULT_STORAGE_SERVER_PORT}
  1204. - REDIS_RESULT_STORAGE_SERVER_DB=${REDIS_RESULT_STORAGE_SERVER_DB}
  1205. - REDIS_RESULT_STORAGE_SERVER_PASSWORD=${REDIS_RESULT_STORAGE_SERVER_PASSWORD}
  1206. - MEMCACHE_STORAGE_SERVERS=${MEMCACHE_STORAGE_SERVERS}
  1207. - MIXED_STORAGE_FILE_STORAGE=${MIXED_STORAGE_FILE_STORAGE}
  1208. - MIXED_STORAGE_CRYPTO_STORAGE=${MIXED_STORAGE_CRYPTO_STORAGE}
  1209. - MIXED_STORAGE_DETECTOR_STORAGE=${MIXED_STORAGE_DETECTOR_STORAGE}
  1210. - META_CALLBACK_NAME=${META_CALLBACK_NAME}
  1211. - DETECTORS=${DETECTORS}
  1212. - FACE_DETECTOR_CASCADE_FILE=${FACE_DETECTOR_CASCADE_FILE}
  1213. - OPTIMIZERS=${OPTIMIZERS}
  1214. - JPEGTRAN_PATH=${JPEGTRAN_PATH}
  1215. - PROGRESSIVE_JPEG=${PROGRESSIVE_JPEG}
  1216. - RESULT_STORAGE_EXPIRATION_SECONDS=${RESULT_STORAGE_EXPIRATION_SECONDS}
  1217. - RESULT_STORAGE_FILE_STORAGE_ROOT_PATH=${RESULT_STORAGE_FILE_STORAGE_ROOT_PATH}
  1218. - RESULT_STORAGE_STORES_UNSAFE=${RESULT_STORAGE_STORES_UNSAFE}
  1219. - REDIS_QUEUE_SERVER_HOST=${REDIS_QUEUE_SERVER_HOST}
  1220. - REDIS_QUEUE_SERVER_PORT=${REDIS_QUEUE_SERVER_PORT}
  1221. - REDIS_QUEUE_SERVER_DB=${REDIS_QUEUE_SERVER_DB}
  1222. - REDIS_QUEUE_SERVER_PASSWORD=${REDIS_QUEUE_SERVER_PASSWORD}
  1223. - SQS_QUEUE_KEY_ID=${SQS_QUEUE_KEY_ID}
  1224. - SQS_QUEUE_KEY_SECRET=${SQS_QUEUE_KEY_SECRET}
  1225. - SQS_QUEUE_REGION=${SQS_QUEUE_REGION}
  1226. - USE_CUSTOM_ERROR_HANDLING=${USE_CUSTOM_ERROR_HANDLING}
  1227. - ERROR_HANDLER_MODULE=${ERROR_HANDLER_MODULE}
  1228. - ERROR_FILE_LOGGER=${ERROR_FILE_LOGGER}
  1229. - ERROR_FILE_NAME_USE_CONTEXT=${ERROR_FILE_NAME_USE_CONTEXT}
  1230. - SENTRY_DSN_URL=${SENTRY_DSN_URL}
  1231. - TC_AWS_REGION=${TC_AWS_REGION}
  1232. - TC_AWS_ENDPOINT=${TC_AWS_ENDPOINT}
  1233. - TC_AWS_STORAGE_BUCKET=${TC_AWS_STORAGE_BUCKET}
  1234. - TC_AWS_STORAGE_ROOT_PATH=${TC_AWS_STORAGE_ROOT_PATH}
  1235. - TC_AWS_LOADER_BUCKET=${TC_AWS_LOADER_BUCKET}
  1236. - TC_AWS_LOADER_ROOT_PATH=${TC_AWS_LOADER_ROOT_PATH}
  1237. - TC_AWS_RESULT_STORAGE_BUCKET=${TC_AWS_RESULT_STORAGE_BUCKET}
  1238. - TC_AWS_RESULT_STORAGE_ROOT_PATH=${TC_AWS_RESULT_STORAGE_ROOT_PATH}
  1239. - TC_AWS_STORAGE_SSE=${TC_AWS_STORAGE_SSE}
  1240. - TC_AWS_STORAGE_RRS=${TC_AWS_STORAGE_RRS}
  1241. - TC_AWS_ENABLE_HTTP_LOADER=${TC_AWS_ENABLE_HTTP_LOADER}
  1242. - TC_AWS_ALLOWED_BUCKETS=${TC_AWS_ALLOWED_BUCKETS}
  1243. - TC_AWS_STORE_METADATA=${TC_AWS_STORE_METADATA}
  1244. networks:
  1245. - frontend
  1246. - backend
  1247. ### AWS EB-CLI ################################################
  1248. aws:
  1249. build:
  1250. context: ./aws-eb-cli
  1251. volumes:
  1252. - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
  1253. depends_on:
  1254. - workspace
  1255. tty: true
  1256. ### Portainer ################################################
  1257. portainer:
  1258. build:
  1259. context: ./portainer
  1260. volumes:
  1261. - ${DATA_PATH_HOST}/portainer_data:/data
  1262. - /var/run/docker.sock:/var/run/docker.sock
  1263. extra_hosts:
  1264. - "dockerhost:${DOCKER_HOST_IP}"
  1265. ports:
  1266. - 9010:9000
  1267. networks:
  1268. - backend
  1269. ### Gitlab ################################################
  1270. gitlab:
  1271. build:
  1272. context: ./gitlab
  1273. environment:
  1274. GITLAB_OMNIBUS_CONFIG: |
  1275. external_url '${GITLAB_DOMAIN_NAME}'
  1276. redis['enable'] = false
  1277. nginx['listen_https'] = false
  1278. nginx['listen_port'] = 80
  1279. nginx['custom_gitlab_server_config'] = "set_real_ip_from 172.0.0.0/8;\nreal_ip_header X-Real-IP;\nreal_ip_recursive on;"
  1280. postgresql['enable'] = false
  1281. gitlab_rails['trusted_proxies'] = ['caddy','nginx','apache2']
  1282. gitlab_rails['redis_host'] = 'redis'
  1283. gitlab_rails['redis_database'] = 8
  1284. gitlab_rails['db_host'] = '${GITLAB_POSTGRES_HOST}'
  1285. gitlab_rails['db_username'] = '${GITLAB_POSTGRES_USER}'
  1286. gitlab_rails['db_password'] = '${GITLAB_POSTGRES_PASSWORD}'
  1287. gitlab_rails['db_database'] = '${GITLAB_POSTGRES_DB}'
  1288. gitlab_rails['initial_root_password'] = '${GITLAB_ROOT_PASSWORD}'
  1289. gitlab_rails['gitlab_shell_ssh_port'] = ${GITLAB_HOST_SSH_PORT}
  1290. volumes:
  1291. - ${DATA_PATH_HOST}/gitlab/config:/etc/gitlab
  1292. - ${DATA_PATH_HOST}/gitlab/data:/var/opt/gitlab
  1293. - ${GITLAB_HOST_LOG_PATH}:/var/log/gitlab
  1294. ports:
  1295. - "${GITLAB_HOST_HTTP_PORT}:80"
  1296. - "${GITLAB_HOST_HTTPS_PORT}:443"
  1297. - "${GITLAB_HOST_SSH_PORT}:22"
  1298. networks:
  1299. - backend
  1300. depends_on:
  1301. - redis
  1302. - postgres
  1303. gitlab-runner:
  1304. image: gitlab/gitlab-runner:latest
  1305. environment:
  1306. - CI_SERVER_URL=${GITLAB_CI_SERVER_URL}
  1307. - REGISTRATION_TOKEN=${GITLAB_RUNNER_REGISTRATION_TOKEN}
  1308. - RUNNER_NAME=${COMPOSE_PROJECT_NAME}-runner
  1309. - REGISTER_NON_INTERACTIVE=${GITLAB_REGISTER_NON_INTERACTIVE}
  1310. - RUNNER_EXECUTOR=shell
  1311. volumes:
  1312. - ${DATA_PATH_HOST}/gitlab/runner:/etc/gitlab-runner
  1313. - /var/run/docker.sock:/var/run/docker.sock:rw
  1314. ### JupyterHub #########################################
  1315. jupyterhub:
  1316. build:
  1317. context: ./jupyterhub
  1318. depends_on:
  1319. - postgres
  1320. - jupyterhub-user
  1321. volumes:
  1322. - /var/run/docker.sock:/var/run/docker.sock:rw
  1323. - ${DATA_PATH_HOST}/jupyterhub/:/data
  1324. - ${JUPYTERHUB_CUSTOM_CONFIG}:/jupyterhub_config.py
  1325. - ${JUPYTERHUB_USER_DATA}:/user-data
  1326. - ${JUPYTERHUB_USER_LIST}:/userlist
  1327. networks:
  1328. - backend
  1329. ports:
  1330. - "${JUPYTERHUB_PORT}:80"
  1331. environment:
  1332. - TERM=xterm
  1333. - JUPYTERHUB_USER_DATA=${JUPYTERHUB_USER_DATA}
  1334. - JUPYTERHUB_POSTGRES_DB=${JUPYTERHUB_POSTGRES_DB}
  1335. - JUPYTERHUB_POSTGRES_USER=${JUPYTERHUB_POSTGRES_USER}
  1336. - JUPYTERHUB_POSTGRES_HOST=${JUPYTERHUB_POSTGRES_HOST}
  1337. - JUPYTERHUB_POSTGRES_PASSWORD=${JUPYTERHUB_POSTGRES_PASSWORD}
  1338. - JUPYTERHUB_OAUTH_CALLBACK_URL=${JUPYTERHUB_OAUTH_CALLBACK_URL}
  1339. - JUPYTERHUB_OAUTH_CLIENT_ID=${JUPYTERHUB_OAUTH_CLIENT_ID}
  1340. - JUPYTERHUB_OAUTH_CLIENT_SECRET=${JUPYTERHUB_OAUTH_CLIENT_SECRET}
  1341. - JUPYTERHUB_LOCAL_NOTEBOOK_IMAGE=${COMPOSE_PROJECT_NAME}_jupyterhub-user
  1342. - JUPYTERHUB_ENABLE_NVIDIA=${JUPYTERHUB_ENABLE_NVIDIA}
  1343. jupyterhub-user:
  1344. build:
  1345. context: ./jupyterhub
  1346. dockerfile: Dockerfile.user
  1347. command: ["sh", "-c", "echo \"build only\""]
  1348. ### IPython #########################################
  1349. ipython-controller:
  1350. build:
  1351. context: ./ipython
  1352. dockerfile: Dockerfile.controller
  1353. networks:
  1354. - backend
  1355. extra_hosts:
  1356. - "laradock-ipython:${LARADOCK_IPYTHON_CONTROLLER_IP}"
  1357. ports:
  1358. - "33327-33338:33327-33338"
  1359. ipython-engine:
  1360. build:
  1361. context: ./ipython
  1362. dockerfile: Dockerfile.engine
  1363. networks:
  1364. - backend
  1365. extra_hosts:
  1366. - "laradock-ipython:${LARADOCK_IPYTHON_CONTROLLER_IP}"
  1367. ### Docker-in-Docker ################################################
  1368. docker-in-docker:
  1369. image: docker:19.03-dind
  1370. environment:
  1371. DOCKER_TLS_SAN: DNS:docker-in-docker
  1372. privileged: true
  1373. volumes:
  1374. - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
  1375. - docker-in-docker:/certs/client
  1376. expose:
  1377. - 2375
  1378. networks:
  1379. - backend
  1380. ### NetData ################################################
  1381. netdata:
  1382. image: netdata/netdata:latest
  1383. cap_add:
  1384. - SYS_PTRACE
  1385. volumes:
  1386. - /proc:/host/proc:ro
  1387. - /sys:/host/sys:ro
  1388. - /var/run/docker.sock:/var/run/docker.sock:ro
  1389. ports:
  1390. - "${NETDATA_PORT}:19999"
  1391. networks:
  1392. - backend
  1393. ### REDISWEBUI ################################################
  1394. redis-webui:
  1395. build:
  1396. context: ./redis-webui
  1397. environment:
  1398. - ADMIN_USER=${REDIS_WEBUI_USERNAME}
  1399. - ADMIN_PASS=${REDIS_WEBUI_PASSWORD}
  1400. - REDIS_1_HOST=${REDIS_WEBUI_CONNECT_HOST}
  1401. - REDIS_1_PORT=${REDIS_WEBUI_CONNECT_PORT}
  1402. networks:
  1403. - backend
  1404. ports:
  1405. - "${REDIS_WEBUI_PORT}:80"
  1406. depends_on:
  1407. - redis
  1408. ### MongoWebUI ################################################
  1409. mongo-webui:
  1410. build:
  1411. context: ./mongo-webui
  1412. environment:
  1413. - ROOT_URL=${MONGO_WEBUI_ROOT_URL}
  1414. - MONGO_URL=${MONGO_WEBUI_MONGO_URL}
  1415. - INSTALL_MONGO=${MONGO_WEBUI_INSTALL_MONGO}
  1416. volumes:
  1417. - ${DATA_PATH_HOST}/mongo-webui:/data/db
  1418. ports:
  1419. - "${MONGO_WEBUI_PORT}:3000"
  1420. networks:
  1421. - backend
  1422. depends_on:
  1423. - mongo
  1424. ### Metabase #################################################
  1425. metabase:
  1426. image: metabase/metabase:latest
  1427. environment:
  1428. - MB_DB_FILE=/metabase-data/${METABASE_DB_FILE}
  1429. ports:
  1430. - ${METABASE_PORT}:3000
  1431. volumes:
  1432. - ${DATA_PATH_HOST}/metabase-data:/metabase-data
  1433. networks:
  1434. - backend
  1435. ### IDE-THEIA ################################################
  1436. ide-theia:
  1437. build:
  1438. context: ./ide-theia
  1439. volumes:
  1440. - ${APP_CODE_PATH_HOST}:/home/project
  1441. ports:
  1442. - "${IDE_THEIA_PORT}:3000"
  1443. networks:
  1444. - backend
  1445. ### IDE-WEBIDE ################################################
  1446. ide-webide:
  1447. build:
  1448. context: ./ide-webide
  1449. volumes:
  1450. - ${DATA_PATH_HOST}/ide/webide/ide.db:/root/.coding-ide/ide.db
  1451. ports:
  1452. - "${IDE_WEBIDE_PORT}:8080"
  1453. networks:
  1454. - backend
  1455. ### IDE-CODIAD ################################################
  1456. ide-codiad:
  1457. build:
  1458. context: ./ide-codiad
  1459. environment:
  1460. - APP_CODE_PATH_CONTAINER=${APP_CODE_PATH_CONTAINER}
  1461. - TZ=${WORKSPACE_TIMEZONE}
  1462. - PGID=1000
  1463. - PUID=1000
  1464. volumes:
  1465. - /etc/localtime:/etc/localtime:ro
  1466. - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
  1467. - ${DATA_PATH_HOST}/ide/codiad:/config
  1468. ports:
  1469. - "${IDE_CODIAD_PORT}:80"
  1470. networks:
  1471. - backend
  1472. ### IDE-ICECODER ################################################
  1473. ide-icecoder:
  1474. build:
  1475. context: ./ide-icecoder
  1476. environment:
  1477. - DOCUMENT_ROOT=${APP_CODE_PATH_CONTAINER}
  1478. - TZ=${WORKSPACE_TIMEZONE}
  1479. - PGID=1000
  1480. - PUID=1000
  1481. volumes:
  1482. - /etc/localtime:/etc/localtime:ro
  1483. - ${APP_CODE_PATH_HOST}:/home/laradock/ICEcoder/dev
  1484. ports:
  1485. - "${IDE_ICECODER_PORT}:8080"
  1486. networks:
  1487. - backend
  1488. ### DOCKER-REGISTRY ################################################
  1489. docker-registry:
  1490. build:
  1491. context: ./docker-registry
  1492. volumes:
  1493. - /etc/localtime:/etc/localtime:ro
  1494. - ${DATA_PATH_HOST}/docker-registry:/var/lib/registry
  1495. ports:
  1496. - "${DOCKER_REGISTRY_PORT}:5000"
  1497. networks:
  1498. - backend
  1499. ### DOCKER-WEB-UI ################################################
  1500. docker-web-ui:
  1501. build:
  1502. context: ./docker-web-ui
  1503. environment:
  1504. - TZ=${WORKSPACE_TIMEZONE}
  1505. - ENV_DOCKER_REGISTRY_HOST=${DOCKER_WEBUI_REGISTRY_HOST}
  1506. - ENV_DOCKER_REGISTRY_PORT=${DOCKER_WEBUI_REGISTRY_PORT}
  1507. - ENV_DOCKER_REGISTRY_USE_SSL=${DOCKER_REGISTRY_USE_SSL}
  1508. - ENV_MODE_BROWSE_ONLY=${DOCKER_REGISTRY_BROWSE_ONLY}
  1509. volumes:
  1510. - /etc/localtime:/etc/localtime:ro
  1511. ports:
  1512. - "${DOCKER_WEBUI_PORT}:80"
  1513. networks:
  1514. - frontend
  1515. - backend
  1516. ### MAILU ################################################
  1517. mailu:
  1518. image: mailu/admin:${MAILU_VERSION}
  1519. volumes:
  1520. - "${DATA_PATH_HOST}/mailu/data:/data"
  1521. - "${DATA_PATH_HOST}/mailu/dkim:/dkim"
  1522. - "${DATA_PATH_HOST}/mailu/webmail:/webmail"
  1523. - /var/run/docker.sock:/var/run/docker.sock:ro
  1524. depends_on:
  1525. - mailu-front
  1526. - mailu-imap
  1527. - mailu-smtp
  1528. - mailu-antispam
  1529. - mailu-antivirus
  1530. - mailu-webdav
  1531. - mailu-admin
  1532. - mailu-webmail
  1533. - mailu-fetchmail
  1534. command: ["sh", "-c", "echo ${MAILU_INIT_ADMIN_USERNAME}@${MAILU_DOMAIN} ${MAILU_INIT_ADMIN_PASSWORD} ;python manage.py advertise ; python manage.py db upgrade ; python manage.py admin ${MAILU_INIT_ADMIN_USERNAME} ${MAILU_DOMAIN} ${MAILU_INIT_ADMIN_PASSWORD} || true;sed -i -- \"s/= Off/= On/g\" /webmail/_data_/_default_/configs/config.ini || true;if grep -Fq \"registration_link_url\" /webmail/_data_/_default_/configs/config.ini;then echo Already set!;else echo \"\" >> /webmail/_data_/_default_/configs/config.ini; echo \"[login]\" >> /webmail/_data_/_default_/configs/config.ini;echo \"registration_link_url = '${MAILU_WEBSITE}${MAILU_WEB_ADMIN}/ui/user/signup'\" >> /webmail/_data_/_default_/configs/config.ini;fi"]
  1535. networks:
  1536. - backend
  1537. mailu-front:
  1538. image: mailu/nginx:${MAILU_VERSION}
  1539. environment:
  1540. - ADMIN=${MAILU_ADMIN}
  1541. - WEB_ADMIN=${MAILU_WEB_ADMIN}
  1542. - WEB_WEBMAIL=${MAILU_WEB_WEBMAIL}
  1543. - WEBDAV=${MAILU_WEBDAV}
  1544. - HOSTNAMES=${MAILU_HOSTNAMES}
  1545. - TLS_FLAVOR=${MAILU_TLS_FLAVOR}
  1546. - MESSAGE_SIZE_LIMIT=${MAILU_MESSAGE_SIZE_LIMIT}
  1547. ports:
  1548. - "${MAILU_HTTP_PORT}:80"
  1549. - "${MAILU_HTTPS_PORT}:443"
  1550. - "110:110"
  1551. - "143:143"
  1552. - "993:993"
  1553. - "995:995"
  1554. - "25:25"
  1555. - "465:465"
  1556. - "587:587"
  1557. volumes:
  1558. - "${DATA_PATH_HOST}/mailu/certs:/certs"
  1559. networks:
  1560. backend:
  1561. aliases:
  1562. - front
  1563. mailu-imap:
  1564. image: mailu/dovecot:${MAILU_VERSION}
  1565. environment:
  1566. - DOMAIN=${MAILU_DOMAIN}
  1567. - HOSTNAMES=${MAILU_HOSTNAMES}
  1568. - POSTMASTER=${MAILU_POSTMASTER}
  1569. - WEBMAIL=${MAILU_WEBMAIL}
  1570. - RECIPIENT_DELIMITER=${MAILU_RECIPIENT_DELIMITER}
  1571. volumes:
  1572. - "${DATA_PATH_HOST}/mailu/data:/data"
  1573. - "${DATA_PATH_HOST}/mailu/mail:/mail"
  1574. - "${DATA_PATH_HOST}/mailu/overrides:/overrides"
  1575. depends_on:
  1576. - mailu-front
  1577. networks:
  1578. backend:
  1579. aliases:
  1580. - imap
  1581. mailu-smtp:
  1582. image: mailu/postfix:${MAILU_VERSION}
  1583. environment:
  1584. - DOMAIN=${MAILU_DOMAIN}
  1585. - HOSTNAMES=${MAILU_HOSTNAMES}
  1586. - RELAYHOST=${MAILU_RELAYHOST}
  1587. - RELAYNETS=${MAILU_RELAYNETS}
  1588. - RECIPIENT_DELIMITER=${MAILU_RECIPIENT_DELIMITER}
  1589. - MESSAGE_SIZE_LIMIT=${MAILU_MESSAGE_SIZE_LIMIT}
  1590. volumes:
  1591. - "${DATA_PATH_HOST}/mailu/data:/data"
  1592. - "${DATA_PATH_HOST}/mailu/overrides:/overrides"
  1593. depends_on:
  1594. - mailu-front
  1595. networks:
  1596. backend:
  1597. aliases:
  1598. - smtp
  1599. mailu-antispam:
  1600. image: mailu/rspamd:${MAILU_VERSION}
  1601. volumes:
  1602. - "${DATA_PATH_HOST}/mailu/filter:/var/lib/rspamd"
  1603. - "${DATA_PATH_HOST}/mailu/dkim:/dkim"
  1604. - "${DATA_PATH_HOST}/mailu/overrides/rspamd:/etc/rspamd/override.d"
  1605. depends_on:
  1606. - mailu-front
  1607. networks:
  1608. backend:
  1609. aliases:
  1610. - antispam
  1611. mailu-antivirus:
  1612. image: mailu/clamav:${MAILU_VERSION}
  1613. volumes:
  1614. - "${DATA_PATH_HOST}/mailu/filter:/data"
  1615. networks:
  1616. backend:
  1617. aliases:
  1618. - antivirus
  1619. mailu-webdav:
  1620. image: mailu/${MAILU_WEBDAV}:${MAILU_VERSION}
  1621. volumes:
  1622. - "${DATA_PATH_HOST}/mailu/dav:/data"
  1623. networks:
  1624. backend:
  1625. aliases:
  1626. - webdav
  1627. mailu-admin:
  1628. image: mailu/admin:${MAILU_VERSION}
  1629. environment:
  1630. - DOMAIN=${MAILU_DOMAIN}
  1631. - HOSTNAMES=${MAILU_HOSTNAMES}
  1632. - POSTMASTER=${MAILU_POSTMASTER}
  1633. - SECRET_KEY=${MAILU_SECRET_KEY}
  1634. - AUTH_RATELIMIT=${MAILU_AUTH_RATELIMIT}
  1635. - TLS_FLAVOR=${MAILU_TLS_FLAVOR}
  1636. - DISABLE_STATISTICS=${MAILU_DISABLE_STATISTICS}
  1637. - DMARC_RUA=${MAILU_DMARC_RUA}
  1638. - DMARC_RUF=${MAILU_DMARC_RUF}
  1639. - WELCOME=${MAILU_WELCOME}
  1640. - WELCOME_SUBJECT=${MAILU_WELCOME_SUBJECT}
  1641. - WELCOME_BODY=${MAILU_WELCOME_BODY}
  1642. - WEB_ADMIN=${MAILU_WEB_ADMIN}
  1643. - WEB_WEBMAIL=${MAILU_WEB_WEBMAIL}
  1644. - WEBSITE=${MAILU_WEBSITE}
  1645. - WEBMAIL=${MAILU_WEBMAIL}
  1646. - SITENAME=${MAILU_SITENAME}
  1647. - PASSWORD_SCHEME=${MAILU_PASSWORD_SCHEME}
  1648. - RECAPTCHA_PUBLIC_KEY=${MAILU_RECAPTCHA_PUBLIC_KEY}
  1649. - RECAPTCHA_PRIVATE_KEY=${MAILU_RECAPTCHA_PRIVATE_KEY}
  1650. volumes:
  1651. - "${DATA_PATH_HOST}/mailu/data:/data"
  1652. - "${DATA_PATH_HOST}/mailu/dkim:/dkim"
  1653. - /var/run/docker.sock:/var/run/docker.sock:ro
  1654. depends_on:
  1655. - redis
  1656. networks:
  1657. backend:
  1658. aliases:
  1659. - admin
  1660. mailu-webmail:
  1661. image: "mailu/${MAILU_WEBMAIL}:${MAILU_VERSION}"
  1662. volumes:
  1663. - "${DATA_PATH_HOST}/mailu/webmail:/data"
  1664. networks:
  1665. backend:
  1666. aliases:
  1667. - webmail
  1668. mailu-fetchmail:
  1669. image: mailu/fetchmail:${MAILU_VERSION}
  1670. environment:
  1671. - FETCHMAIL_DELAY=${MAILU_FETCHMAIL_DELAY}
  1672. volumes:
  1673. - "${DATA_PATH_HOST}/mailu/data:/data"
  1674. networks:
  1675. backend:
  1676. aliases:
  1677. - fetchmail
  1678. ### TRAEFIK #########################################
  1679. traefik:
  1680. build:
  1681. context: ./traefik
  1682. volumes:
  1683. - /var/run/docker.sock:/var/run/docker.sock
  1684. - ./traefik/data:/data
  1685. command:
  1686. - "--api"
  1687. - "--providers.docker.exposedbydefault=false"
  1688. - "--accesslog.filepath=/data/access.log"
  1689. # entrypoints
  1690. - "--entrypoints.http.address=:${TRAEFIK_HOST_HTTP_PORT}"
  1691. - "--entrypoints.http.http.redirections.entrypoint.to=https"
  1692. - "--entrypoints.https.address=:${TRAEFIK_HOST_HTTPS_PORT}"
  1693. - "--entrypoints.traefik.address=:${TRAEFIK_DASHBOARD_PORT}"
  1694. # certificatesresolvers
  1695. - "--certificatesresolvers.letsencrypt.acme.email=${ACME_EMAIL}"
  1696. - "--certificatesresolvers.letsencrypt.acme.storage=/data/acme.json"
  1697. - "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=http"
  1698. ports:
  1699. - "${TRAEFIK_HOST_HTTP_PORT}:${TRAEFIK_HOST_HTTP_PORT}"
  1700. - "${TRAEFIK_HOST_HTTPS_PORT}:${TRAEFIK_HOST_HTTPS_PORT}"
  1701. - "${TRAEFIK_DASHBOARD_PORT}:${TRAEFIK_DASHBOARD_PORT}"
  1702. networks:
  1703. - frontend
  1704. - backend
  1705. labels:
  1706. - "traefik.enable=true"
  1707. - "traefik.http.routers.traefik.rule=Host(`${ACME_DOMAIN}`)"
  1708. - "traefik.http.routers.traefik.entrypoints=traefik"
  1709. - "traefik.http.routers.traefik.service=api@internal"
  1710. - "traefik.http.routers.traefik.middlewares=access-auth"
  1711. - "traefik.http.routers.traefik.tls.certresolver=letsencrypt"
  1712. - "traefik.http.middlewares.access-auth.basicauth.realm=Login Required"
  1713. - "traefik.http.middlewares.access-auth.basicauth.users=${TRAEFIK_DASHBOARD_USER}"
  1714. ### MOSQUITTO Broker #########################################
  1715. mosquitto:
  1716. build:
  1717. context: ./mosquitto
  1718. volumes:
  1719. - ${DATA_PATH_HOST}/mosquitto/data:/mosquitto/data
  1720. ports:
  1721. - "${MOSQUITTO_PORT}:9001"
  1722. networks:
  1723. - frontend
  1724. - backend
  1725. ### COUCHDB ###################################################
  1726. couchdb:
  1727. build:
  1728. context: ./couchdb
  1729. volumes:
  1730. - ${DATA_PATH_HOST}/couchdb/data:/opt/couchdb/data
  1731. ports:
  1732. - "${COUCHDB_PORT}:5984"
  1733. networks:
  1734. - backend
  1735. ### Manticore Search ###########################################
  1736. manticore:
  1737. build:
  1738. context: ./manticore
  1739. volumes:
  1740. - ${MANTICORE_CONFIG_PATH}:/etc/sphinxsearch
  1741. - ${DATA_PATH_HOST}/manticore/data:/var/lib/manticore/data
  1742. - ${DATA_PATH_HOST}/manticore/log:/var/log/manticore
  1743. ports:
  1744. - "${MANTICORE_API_PORT}:9312"
  1745. - "${MANTICORE_SPHINXQL_PORT}:9306"
  1746. - "${MANTICORE_HTTP_PORT}:9308"
  1747. networks:
  1748. - backend
  1749. ### SONARQUBE ################################################
  1750. sonarqube:
  1751. build:
  1752. context: ./sonarqube
  1753. hostname: "${SONARQUBE_HOSTNAME}"
  1754. volumes:
  1755. - ${DATA_PATH_HOST}/sonarqube/conf:/opt/sonarqube/conf
  1756. - ${DATA_PATH_HOST}/sonarqube/data:/opt/sonarqube/data
  1757. - ${DATA_PATH_HOST}/sonarqube/logs:/opt/sonarqube/logs
  1758. - ${DATA_PATH_HOST}/sonarqube/extensions:/opt/sonarqube/extensions
  1759. - ${DATA_PATH_HOST}/sonarqube/plugins:/opt/sonarqube/lib/bundled-plugins
  1760. ports:
  1761. - ${SONARQUBE_PORT}:9000
  1762. depends_on:
  1763. - postgres
  1764. environment:
  1765. - sonar.jdbc.username=${SONARQUBE_POSTGRES_USER}
  1766. - sonar.jdbc.password=${SONARQUBE_POSTGRES_PASSWORD}
  1767. - sonar.jdbc.url=jdbc:postgresql://${SONARQUBE_POSTGRES_HOST}:5432/${SONARQUBE_POSTGRES_DB}
  1768. networks:
  1769. - backend
  1770. - frontend
  1771. ### CONFLUENCE ################################################
  1772. confluence:
  1773. container_name: Confluence
  1774. image: atlassian/confluence-server:${CONFLUENCE_VERSION}
  1775. restart: always
  1776. ports:
  1777. - "${CONFLUENCE_HOST_HTTP_PORT}:8090"
  1778. networks:
  1779. - frontend
  1780. - backend
  1781. depends_on:
  1782. - postgres
  1783. volumes:
  1784. - ${DATA_PATH_HOST}/Confluence:/var/atlassian/application-data
  1785. ### tomcat ####################################################
  1786. tomcat:
  1787. container_name: tomcat
  1788. image: tomcat:${TOMCAT_VERSION}
  1789. ports:
  1790. - "${TOMCAT_HOST_HTTP_PORT}:8080"
  1791. networks:
  1792. - frontend
  1793. - backend
  1794. volumes:
  1795. - ${DATA_PATH_HOST}/tomcat/webapps:/usr/local/tomcat/webapps
  1796. - ${DATA_PATH_HOST}/tomcat/logs:/usr/local/tomcat/logs
  1797. # restart: always
  1798. ### react #####################################################
  1799. react:
  1800. build:
  1801. context: ./react
  1802. ports:
  1803. - "3000:3000"
  1804. container_name: react
  1805. stdin_open: true
  1806. environment:
  1807. - CHOKIDAR_USEPOLLING=true
  1808. networks:
  1809. - frontend
  1810. - backend
  1811. volumes:
  1812. - ./react:/usr/src/app/react
  1813. - /usr/src/app/react/node_modules