docker-compose.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. version: '3'
  2. volumes:
  3. files_michelle:
  4. name: ${CONTAINER_NAME}_files_michelle
  5. driver: local
  6. driver_opts:
  7. type: volume
  8. o: 'bind'
  9. device: ${USERROOT_MICHELLE}
  10. files_jennifer:
  11. name: ${CONTAINER_NAME}_files_jennifer
  12. driver: local
  13. driver_opts:
  14. type: volume
  15. o: 'bind'
  16. device: ${USERROOT_JENNIFER}
  17. files_mindy:
  18. name: ${CONTAINER_NAME}_files_mindy
  19. driver: local
  20. driver_opts:
  21. type: volume
  22. o: 'bind'
  23. device: ${USERROOT_MINDY}
  24. files_player1:
  25. name: ${CONTAINER_NAME}_files_player1
  26. driver: local
  27. driver_opts:
  28. type: volume
  29. o: 'bind'
  30. device: ${USERROOT_PLAYER1}
  31. files:
  32. name: ${CONTAINER_NAME}_files
  33. driver: local
  34. db:
  35. name: ${CONTAINER_NAME}_db
  36. driver: local
  37. redis:
  38. name: ${CONTAINER_NAME}_redis
  39. driver: local
  40. es_index:
  41. name: ${CONTAINER_NAME}_es_index
  42. driver: local
  43. oo_data:
  44. name: ${CONTAINER_NAME}_oo_data
  45. driver: local
  46. clamav:
  47. name: ${CONTAINER_NAME}_clamav
  48. driver: local
  49. services:
  50. db:
  51. image: mariadb:11.4.2
  52. container_name: ${CONTAINER_NAME}_db
  53. command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
  54. restart: "no"
  55. volumes:
  56. - db:/var/lib/mysql
  57. # - db_r1:/var/lib/mysql
  58. environment:
  59. - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
  60. - MYSQL_PASSWORD=${MYSQL_PASSWORD}
  61. - MYSQL_DATABASE=nextcloud
  62. - MYSQL_USER=nextcloud
  63. redis:
  64. image: redis:7.2.4-alpine
  65. container_name: ${CONTAINER_NAME}_redis
  66. restart: "no"
  67. volumes:
  68. - redis:/var/lib/redis
  69. app:
  70. # image: nextcloud:30.0.4-apache
  71. image: nextcloud-ffmpeg-image:latest
  72. container_name: ${CONTAINER_NAME}
  73. ports:
  74. - 1234:80
  75. links:
  76. - db
  77. - redis
  78. volumes:
  79. - files:/var/www/html
  80. - files_player1:/var/www/html/data/player1
  81. - files_mindy:/var/www/html/data/mindy
  82. - files_jennifer:/var/www/html/data/jennifer
  83. - files_michelle:/var/www/html/data/michelle
  84. restart: "no"
  85. environment:
  86. - REDIS_HOST=redis
  87. - REDIS_PASSWORD=
  88. - PHP_MEMORY_LIMIT=1G
  89. - PHP_UPLOAD_LIMIT=12G
  90. devices:
  91. - /dev/dri:/dev/dri # VA-API (omit for NVENC)
  92. cron:
  93. image: nextcloud:30.0.4-apache
  94. container_name: ${CONTAINER_NAME}_cron
  95. links:
  96. - db
  97. - redis
  98. volumes:
  99. - files:/var/www/html
  100. restart: "no"
  101. entrypoint: /cron.sh
  102. es01:
  103. # image: docker.elastic.co/elasticsearch/elasticsearch:7.17.23
  104. image: elasticsearch-ingest:latest
  105. container_name: ${CONTAINER_NAME}_es
  106. environment:
  107. - node.name=es01
  108. - discovery.type=single-node
  109. ulimits:
  110. memlock:
  111. soft: -1
  112. hard: -1
  113. volumes:
  114. - es_index:/usr/share/elasticsearch/data
  115. restart: "no"
  116. ports:
  117. - 9200:9200
  118. av:
  119. container_name: ${CONTAINER_NAME}_clamav
  120. image: mkodockx/docker-clamav:alpine
  121. restart: "no"
  122. ports:
  123. - 3310:3310
  124. volumes:
  125. - clamav:/etc/clamav
  126. onlyoffice:
  127. container_name: ${CONTAINER_NAME}_onlyoffice
  128. image: onlyoffice/documentserver:latest
  129. restart: "no"
  130. environment:
  131. - JWT_SECRET=secret
  132. ports:
  133. - 9980:80
  134. volumes:
  135. - oo_data:/var/www/onlyoffice/Data
  136. - oo_data:/var/log/onlyoffice
  137. go-vod:
  138. container_name: ${CONTAINER_NAME}_govod
  139. image: radialapps/go-vod
  140. restart: "no"
  141. init: true
  142. depends_on:
  143. - app
  144. environment:
  145. - NEXTCLOUD_HOST=${NEXTCLOUD_HOST}
  146. # - NEXTCLOUD_ALLOW_INSECURE=1 # (self-signed certs or no HTTPS)
  147. - NVIDIA_VISIBLE_DEVICES=all
  148. devices:
  149. - /dev/dri:/dev/dri # VA-API (omit for NVENC)
  150. volumes:
  151. - files:/var/www/html:ro