Advertisement
Guest User

Untitled

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