docker-compose.yml 3.1 KB

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