mailo95

Nextcloud-Docker

Jun 11th, 2021 (edited)
83
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3'
  2.  
  3. volumes:
  4. nextcloud-data:
  5. nextcloud-db:
  6. npm-data:
  7. npm-ssl:
  8. npm-db:
  9.  
  10. networks:
  11. frontend:
  12. backend:
  13.  
  14. services:
  15.  
  16. nextcloud-app:
  17. image: nextcloud
  18. restart: always
  19. volumes:
  20. - /mnt/md0/:/var/www/html
  21. environment:
  22. - MYSQL_PASSWORD=anypasswd
  23. - MYSQL_DATABASE=nextcloud
  24. - MYSQL_USER=nextcloud
  25. - MYSQL_HOST=nextcloud-db
  26. networks:
  27. - frontend
  28. - backend
  29.  
  30. nextcloud-db:
  31. image: mariadb
  32. restart: always
  33. command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
  34. volumes:
  35. - nextcloud-db:/var/lib/mysql
  36. environment:
  37. - MYSQL_ROOT_PASSWORD=replace-with-secure-password
  38. - MYSQL_PASSWORD=replace-with-secure-password
  39. - MYSQL_DATABASE=nextcloud
  40. - MYSQL_USER=nextcloud
  41. networks:
  42. - backend
  43.  
  44. npm-app:
  45. image: jc21/nginx-proxy-manager:latest
  46. restart: always
  47. ports:
  48. - "80:80"
  49. - "81:81"
  50. - "443:443"
  51. environment:
  52. - DB_MYSQL_HOST=npm-db
  53. - DB_MYSQL_PORT=3306
  54. - DB_MYSQL_USER=npm
  55. - DB_MYSQL_PASSWORD=anypasswd
  56. - DB_MYSQL_NAME=npm
  57. volumes:
  58. - npm-data:/data
  59. - npm-ssl:/etc/letsencrypt
  60. networks:
  61. - frontend
  62. - backend
  63.  
  64. npm-db:
  65. image: jc21/mariadb-aria:latest
  66. restart: always
  67. environment:
  68. - MYSQL_ROOT_PASSWORD=anypasswd
  69. - MYSQL_DATABASE=npm
  70. - MYSQL_USER=npm
  71. - MYSQL_PASSWORD=anypasswd
  72. volumes:
  73. - npm-db:/var/lib/mysql
  74. networks:
  75. - backend
RAW Paste Data