Guest User

Untitled

a guest
May 25th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. version: '2'
  2.  
  3. volumes:
  4. nextcloud:
  5. nextcloudDB:
  6.  
  7. services:
  8. db:
  9. image: mariadb
  10. restart: always
  11. volumes:
  12. - nextcloudDB:/var/lib/mysql
  13. environment:
  14. - MYSQL_ROOT_PASSWORD=<really secure pass>
  15. - MYSQL_PASSWORD=<database password>
  16. - MYSQL_DATABASE=nextcloud
  17. - MYSQL_USER=nextcloud
  18. network_mode: bridge
  19.  
  20. app:
  21. image: nextcloud
  22. links:
  23. - db
  24. ports:
  25. - 8080:80
  26. volumes:
  27. - nextcloud:/var/www/html
  28. environment:
  29. - VIRTUAL_HOST=nextcloud.example.com
  30. - LETSENCRYPT_HOST=nextcloud.example.com
  31. - MYSQL_HOST=db
  32. depends_on:
  33. - db
  34. network_mode: bridge
  35. restart: always
Add Comment
Please, Sign In to add comment