docker-compose.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. version: '2.1'
  2. #version: '3'
  3. volumes:
  4. files:
  5. driver: local
  6. driver_opts:
  7. type: volume
  8. o: 'bind'
  9. device: "${DATA_VOLUME_ROOT}/data/files"
  10. db:
  11. driver: local
  12. driver_opts:
  13. type: volume
  14. o: 'bind'
  15. device: "${DB_VOLUME_ROOT}/db"
  16. redis:
  17. driver: local
  18. driver_opts:
  19. type: volume
  20. o: 'bind'
  21. device: "${REDIS_VOLUME_ROOT}/redis"
  22. es_index:
  23. driver: local
  24. driver_opts:
  25. type: volume
  26. o: 'bind'
  27. device: "${ELASTIC_SEARCH_ROOT}/es"
  28. es_root:
  29. driver: local
  30. driver_opts:
  31. type: volume
  32. o: 'bind'
  33. device: "${ELASTIC_SEARCH_ROOT}/es_root"
  34. oo_data:
  35. driver: local
  36. driver_opts:
  37. type: volume
  38. o: 'bind'
  39. device: "${DATA_VOLUME_ROOT}/data/oo_data"
  40. clamav:
  41. driver: local
  42. driver_opts:
  43. type: volume
  44. o: 'bind'
  45. device: "${DATA_VOLUME_ROOT}/data/clamav"
  46. services:
  47. db:
  48. image: mariadb
  49. container_name: ${CONTAINER_NAME}_db
  50. command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
  51. restart: "no"
  52. volumes:
  53. - db:/var/lib/mysql
  54. environment:
  55. - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
  56. - MYSQL_PASSWORD=${MYSQL_PASSWORD}
  57. - MYSQL_DATABASE=nextcloud
  58. - MYSQL_USER=nextcloud
  59. redis:
  60. image: redis:alpine
  61. container_name: ${CONTAINER_NAME}_redis
  62. restart: "no"
  63. volumes:
  64. - redis:/var/lib/redis
  65. app:
  66. image: nextcloud:20.0.6
  67. container_name: ${CONTAINER_NAME}
  68. ports:
  69. - 1235:80
  70. links:
  71. - db
  72. - redis
  73. volumes:
  74. - files:/var/www/html
  75. restart: "no"
  76. environment:
  77. - REDIS_HOST=redis
  78. - REDIS_PASSWORD=
  79. es01:
  80. image: docker.elastic.co/elasticsearch/elasticsearch:6.8.1
  81. container_name: ${CONTAINER_NAME}_es
  82. environment:
  83. - node.name=es01
  84. - discovery.type=single-node
  85. ulimits:
  86. memlock:
  87. soft: -1
  88. hard: -1
  89. volumes:
  90. #- es_index:/usr/share/elasticsearch/data
  91. - es_index:/usr/share/elasticsearch/data
  92. #- es_root:/usr/share/elasticsearch
  93. - es_root:/usr/share/elasticsearch
  94. restart: "no"
  95. ports:
  96. - 9201:9200
  97. onlyoffice:
  98. container_name: ${CONTAINER_NAME}_onlyoffice
  99. image: onlyoffice/documentserver:6.0.2
  100. stdin_open: true
  101. tty: true
  102. restart: "no"
  103. #restart: always
  104. ports:
  105. - 9981:80
  106. volumes:
  107. - oo_data:/var/www/onlyoffice/Data
  108. #- oo_log:/var/log/onlyoffice
  109. av:
  110. image: mkodockx/docker-clamav:alpine
  111. container_name: ${CONTAINER_NAME}_clamav
  112. restart: "no"
  113. ports:
  114. - 3311:3310
  115. volumes:
  116. - clamav:/etc/clamav