docker-compose.yaml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. version: '3.3'
  2. services:
  3. nginx-proxy:
  4. hostname: nginx
  5. container_name: nginx-proxy
  6. build:
  7. context: .
  8. dockerfile: docker/nginx/Dockerfile
  9. restart: always
  10. ports:
  11. - 80:80
  12. - 443:443
  13. volumes:
  14. - /var/run/docker.sock:/tmp/docker.sock:ro
  15. - /etc/nginx/vhost.d
  16. - /usr/share/nginx/html
  17. db:
  18. hostname: db
  19. container_name: mariaDb
  20. build:
  21. context: .
  22. dockerfile: docker/mariaDb/Dockerfile
  23. args:
  24. - COMPOSER_HASH=${COMPOSER_HASH}
  25. restart: always
  26. ports:
  27. - 3306:3306
  28. volumes:
  29. - ./apps/opentalent-platform/migration:/usr/src:cached
  30. - ./mysqldata:/var/lib/mysql
  31. - ./apps/env:/env:cached
  32. - ./apps/metabase:/usr/metabase:cached
  33. environment:
  34. MYSQL_ROOT_PASSWORD: ${MYSQL_PASS}
  35. phpmyadmin:
  36. hostname: phpmyadmin
  37. container_name: phpmyadmin
  38. image: phpmyadmin/phpmyadmin
  39. environment:
  40. - VIRTUAL_HOST=${PHPMYADMIN_VIRTUAL_HOST}
  41. restart: always
  42. depends_on:
  43. - db
  44. es:
  45. hostname: es
  46. container_name: es
  47. image: elasticsearch:2.4.6-alpine
  48. restart: always
  49. volumes:
  50. - ./elasticsearchdata:/usr/share/elasticsearch/data
  51. - ./docker/elasticsearch/conf/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:cached
  52. environment:
  53. - cluster.name=docker-cluster
  54. - bootstrap.memory_lock=true
  55. - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  56. - VIRTUAL_HOST=${ES_VIRTUAL_HOST}
  57. - VIRTUAL_PORT=${ES_PORT}
  58. ulimits:
  59. memlock:
  60. soft: -1
  61. hard: -1
  62. thumbor:
  63. hostname: thumbor
  64. container_name: thumbor
  65. image: minimalcompact/thumbor
  66. restart: always
  67. environment:
  68. - VIRTUAL_HOST=${THUMBOR_VIRTUAL_HOST}
  69. - LOADER=thumbor.loaders.file_loader
  70. # volumes:
  71. # - ./apps/opentalent-platform/web/files:/data/loader:cached
  72. php:
  73. hostname: back
  74. container_name: php
  75. build:
  76. context: .
  77. dockerfile: docker/php/Dockerfile
  78. args:
  79. - COMPOSER_HASH=${COMPOSER_HASH}
  80. - OS=${OS}
  81. restart: always
  82. environment:
  83. - PHP_IDE_CONFIG=serverName=api
  84. volumes:
  85. # Version Symfony 2
  86. - appdata:/var/www/html/app/cache/
  87. - appdata:/var/www/html/app/logs/
  88. - ./useruploaddata:/var/www/html/fileadmin/user_upload:cached
  89. # Le code sera surtout modifié en dehors du container, donc la consistence est prioritairement dans ce sens
  90. - ./apps/opentalent-platform:/var/www/html:cached
  91. # A l'inverse, les vendors seront surtout modifiés dans le container
  92. - ./apps/opentalent-platform/vendor:/var/www/html/vendor:delegated
  93. depends_on:
  94. - db
  95. - es
  96. - thumbor
  97. - nginx-proxy
  98. api:
  99. hostname: api
  100. container_name: api
  101. image: nginx:alpine
  102. volumes:
  103. - ./apps/opentalent-platform/web:/var/www/html/web:cached
  104. - ./docker/nginx/site.conf:/etc/nginx/conf.d/default.conf:cached
  105. environment:
  106. - VIRTUAL_HOST=${API_VIRTUAL_HOST}
  107. - HTTPS_METHOD=noredirect
  108. depends_on:
  109. - php
  110. admin:
  111. hostname: front
  112. container_name: admin
  113. build:
  114. context: .
  115. dockerfile: docker/node/Dockerfile
  116. volumes:
  117. - ./apps/opentalent-admin-2.0:/home/workspace:rw,cached
  118. tty: true
  119. ports:
  120. - 3000:3000
  121. - 3001:3001
  122. environment:
  123. - VIRTUAL_HOST=${ADMIN_VIRTUAL_HOST}
  124. - VIRTUAL_PORT=${ADMIN_PORT}
  125. - NODE_ENV=docker
  126. - HTTPS_METHOD=noredirect
  127. depends_on:
  128. - api
  129. portail:
  130. hostname: portail
  131. container_name: portail
  132. build:
  133. context: .
  134. dockerfile: docker/portail/Dockerfile
  135. args:
  136. - COMPOSER_HASH=${COMPOSER_HASH}
  137. restart: always
  138. volumes:
  139. - ./docker/portail/conf/LocalConfiguration.php:/var/www/html/typo3conf/LocalConfiguration.php:cached
  140. - ./apps/portail/websites:/var/www/html/websites:cached
  141. - ./apps/opentalent/templates:/var/www/html/fileadmin/templates:cached
  142. - ./apps/portail/themes/BlueSky:/var/www/html/fileadmin/theme_gallery/BlueSky:cached
  143. - ./apps/portail/typo3extension/ot_cms:/var/www/html/typo3conf/ext/ot_cms:cached
  144. - ./apps/portail/typo3extension/ot_portail:/var/www/html/typo3conf/ext/ot_portail:cached
  145. - ./apps/portail/typo3extension/ot_webservice:/var/www/html/typo3conf/ext/ot_webservice:cached
  146. - ./apps/portail/typo3extension/theme_gallery:/var/www/html/typo3conf/ext/theme_gallery:cached
  147. - ./apps/portail/typo3extension/piwik:/var/www/html/typo3conf/ext/piwik:cached
  148. - ./apps/portail/typo3extension/piwikintegration:/var/www/html/typo3conf/ext/piwikintegration:cached
  149. environment:
  150. - VIRTUAL_HOST=${PORTAIL_VIRTUAL_HOST}
  151. - HTTPS_METHOD=noredirect
  152. depends_on:
  153. - api
  154. typo3:
  155. hostname: typo3
  156. container_name: typo3
  157. build:
  158. context: .
  159. dockerfile: docker/typo3/Dockerfile
  160. args:
  161. - COMPOSER_HASH=${COMPOSER_HASH}
  162. restart: always
  163. volumes:
  164. - ./apps/ot_typo3:/var/opentalent/git/ot_typo3:cached
  165. environment:
  166. - VIRTUAL_HOST=${TYPO3_VIRTUAL_HOST}
  167. - HTTPS_METHOD=noredirect
  168. depends_on:
  169. - api
  170. adminassos:
  171. hostname: v59
  172. container_name: adminassos
  173. build:
  174. context: .
  175. dockerfile: docker/adminassos/Dockerfile
  176. args:
  177. - OS=${OS}
  178. restart: always
  179. volumes:
  180. - ./apps/opentalent:/var/source/opentalent:cached
  181. - ./useruploaddata:/var/www/opentalent/fileadmin/user_upload:cached
  182. - ./apps/vendor:/var/source/vendor:delegated
  183. - ./apps/opentalent-config:/var/source/config:cached
  184. environment:
  185. - VIRTUAL_HOST=${V59_VIRTUAL_HOST}
  186. depends_on:
  187. - api
  188. mailcatcher:
  189. hostname: mailcatcher
  190. container_name: mailcatcher
  191. image: sj26/mailcatcher
  192. restart: always
  193. ports:
  194. - '1025:1025'
  195. environment:
  196. - VIRTUAL_HOST=${MAILCATCHER_VIRTUAL_HOST}
  197. - VIRTUAL_PORT=${MAILCATCHER_PORT}
  198. depends_on:
  199. - nginx-proxy
  200. blackfire:
  201. hostname: blackfire
  202. container_name: blackfire
  203. image: blackfire/blackfire
  204. environment:
  205. - BLACKFIRE_LOG_LEVEL=4
  206. - BLACKFIRE_SERVER_ID=${BLACKFIRE_SERVER_ID}
  207. - BLACKFIRE_SERVER_TOKEN=${BLACKFIRE_SERVER_TOKEN}
  208. - BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID}
  209. - BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN}
  210. - VIRTUAL_HOST=${BLACK_FIRE_VIRTUAL_HOST}
  211. - VIRTUAL_PORT=${BLACK_FIRE_PORT}
  212. depends_on:
  213. - php
  214. metabase:
  215. hostname: metabase
  216. image: metabase/metabase
  217. restart: always
  218. volumes:
  219. - ./metabase-data:/metabase-data
  220. environment:
  221. - MB_DB_FILE=./metabase-data/metabase.db
  222. - VIRTUAL_HOST=${METABASE_VIRTUAL_HOST}
  223. - VIRTUAL_PORT=${METABASE_PORT}
  224. depends_on:
  225. - db
  226. volumes:
  227. mysqldata: ~
  228. elasticsearchdata: ~
  229. metabase-data: ~
  230. # On rajoute un volume (de données non accessibles en dehors)
  231. appdata: ~