Advertisement
cstine

Untitled

Jun 30th, 2024
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. services:
  2. nextcloud:
  3. image: nextcloud:apache
  4. restart: always
  5. ports:
  6. - 4180:80
  7. volumes:
  8. - /home/username/nextcloud/data:/var/www/html
  9. networks:
  10. - redisnet
  11. - dbnet
  12. - oonet
  13. environment:
  14. - REDIS_HOST=redis
  15. - MYSQL_HOST=db
  16. - MYSQL_DATABASE=nextcloud
  17. - MYSQL_USER=nextcloud
  18. - MYSQL_PASSWORD=supersecretpasswordhere
  19.  
  20. redis:
  21. image: redis:alpine
  22. restart: always
  23. networks:
  24. - redisnet
  25. expose:
  26. - 6379
  27.  
  28. db:
  29. image: mariadb:10.5
  30. command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
  31. restart: always
  32. volumes:
  33. - /home/username/nextcloud/db:/var/lib/mysql
  34. networks:
  35. - dbnet
  36. environment:
  37. - MYSQL_DATABASE=nextcloud
  38. - MYSQL_USER=nextcloud
  39. - MYSQL_ROOT_PASSWORD=nextcloud
  40. - MYSQL_PASSWORD=supersecretpasswordhere
  41. expose:
  42. - 3306
  43.  
  44. onlyoffice-document-server:
  45. container_name: onlyoffice-document-server
  46. hostname: onlyoffice-document-server
  47. image: onlyoffice/documentserver:latest
  48. restart: always
  49. networks:
  50. - oonet
  51. environment:
  52. - JWT_SECRET=generate-your-own-jwt-secret-here
  53. ports:
  54. - 21122:80
  55. expose:
  56. - '80'
  57. - '443'
  58. volumes:
  59. - /home/username/nextcloud/oo-data:/var/www/onlyoffice/Data
  60. - /home/username/nextcloud/oo-logs:/var/log/onlyoffice
  61.  
  62. networks:
  63. dbnet:
  64. redisnet:
  65. oonet:
  66.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement