Advertisement
Guest User

Untitled

a guest
Jul 24th, 2024
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4. nextcloud_db:
  5. image: mariadb:10.3.8
  6. command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
  7. restart: always
  8. volumes:
  9. - nextcloud_db:/var/lib/mysql
  10. environment:
  11. - MYSQL_ROOT_PASSWORD=****
  12. - MYSQL_PASSWORD=****
  13. - MYSQL_DATABASE=****
  14. - MYSQL_USER=****
  15.  
  16. nextcloud_app:
  17. image: nextcloud:28.0.8-fpm-alpine
  18. restart: always
  19. volumes:
  20. - nextcloud_app:/var/www/html
  21. environment:
  22. - MYSQL_PASSWORD=****
  23. - MYSQL_DATABASE=****
  24. - MYSQL_USER=****
  25. - MYSQL_HOST=****
  26. - NEXTCLOUD_ADMIN_USER=****
  27. - NEXTCLOUD_ADMIN_PASSWORD=****
  28. depends_on:
  29. - nextcloud_db
  30.  
  31. nextcloud_web:
  32. image: nginx:1.15.2-alpine
  33. restart: always
  34. volumes:
  35. - ./nginx_nextcloud.conf:/etc/nginx/nginx.conf:ro
  36. - nextcloud_app:/var/www/html:ro
  37. depends_on:
  38. - nextcloud_app
  39.  
  40. web:
  41. image: nginx:1.15.2-alpine
  42. restart: always
  43. volumes:
  44. - ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
  45. - ./nginx/htpasswd:/etc/nginx/htpasswd:ro
  46. - ./html:/var/www/html:ro
  47. - letsencrypt:/letsencrypt:ro
  48. depends_on:
  49. - nextcloud_web
  50. ports:
  51. - 80:80
  52. - 443:443
  53.  
  54. certbot:
  55. build: ./certbot
  56. restart: always
  57. volumes:
  58. - letsencrypt:/etc/letsencrypt
  59. - ./html:/html
  60.  
  61. volumes:
  62. letsencrypt:
  63. driver_opts:
  64. type: none
  65. device: /mnt/disk/mycloud/letsencrypt
  66. o: bind
  67. nextcloud_db:
  68. driver_opts:
  69. type: none
  70. device: /mnt/disk/mycloud/nextcloud_db
  71. o: bind
  72. nextcloud_app:
  73. driver_opts:
  74. type: none
  75. device: /mnt/disk/mycloud/nextcloud_app
  76. o: bind
  77.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement