Guest User

Untitled

a guest
Nov 29th, 2021
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. version: '2'
  2.  
  3. volumes:
  4. nextcloud:
  5. db:
  6. certs:
  7. vhost:
  8. html:
  9.  
  10. services:
  11. db:
  12. image: mariadb
  13. restart: always
  14. command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
  15. volumes:
  16. - db:/var/lib/mysql
  17. environment:
  18. - MYSQL_ROOT_PASSWORD=passwd
  19. - MYSQL_PASSWORD=passwd
  20. - MYSQL_DATABASE=nextcloud
  21. - MYSQL_USER=nextcloud
  22.  
  23. app:
  24. image: nextcloud:fpm
  25. restart: always
  26. links:
  27. - db
  28. volumes:
  29. - nextcloud:/var/www/html
  30. environment:
  31. - MYSQL_PASSWORD=passwd
  32. - MYSQL_DATABASE=nextcloud
  33. - MYSQL_USER=nextcloud
  34. - MYSQL_HOST=db
  35.  
  36. web:
  37. image: nginxproxy/nginx-proxy
  38. restart: always
  39. ports:
  40. - 80:80
  41. - 443:443
  42. links:
  43. - app
  44. volumes:
  45. - ./nginx.conf:/etc/nginx/nginx.conf:ro
  46. - certs:/etc/nginx/certs
  47. - vhost:/etc/nginx/vhost.d
  48. - html:/usr/share/nginx/html
  49. - /var/run/docker.sock:/tmp/docker.sock:ro
  50. volumes_from:
  51. - app
  52.  
  53. nginx-proxy-acme:
  54. image: nginxproxy/acme-companion
  55. restart: always
  56. volumes:
  57. - /var/run/docker.sock:/var/run/docker.sock:ro
  58. - certs:/etc/nginx/certs
  59. - vhost:/etc/nginx/vhost.d
  60. - html:/usr/share/nginx/html
  61. - acme:/etc/acme.sh
  62. volumes_from:
  63. - web
  64. environment:
  65.  
Advertisement
Add Comment
Please, Sign In to add comment