Guest User

docker compose file for nextcloud

a guest
Oct 3rd, 2024
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 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 --innodb-file-per-table=1 --skip-innodb-read-only-compressed
  12.  
  13. volumes:
  14. - db:/var/lib/mysql
  15. environment:
  16. - MYSQL_ROOT_PASSWORD=Bund7zXeVz7YnFknLGcnUjHtk #change this
  17. - MYSQL_PASSWORD=HFdMe9rn5kf7A8Pqc8v86Pre5 #change this
  18. - MYSQL_DATABASE=nextcloud
  19. - MYSQL_USER=nextcloud
  20.  
  21. app:
  22. image: nextcloud
  23. restart: always
  24. devices:
  25. - /dev/dri:/dev/dri
  26.  
  27. ports:
  28. - 8080:80
  29. links:
  30. - db
  31. volumes:
  32. - nextcloud:/var/www/html
  33. environment:
  34. - MYSQL_PASSWORD=HFdMe9rn5kf7A8Pqc8v86Pre5 #change this to match the mysql_password above
  35. - MYSQL_DATABASE=nextcloud
  36. - MYSQL_USER=nextcloud
  37. - MYSQL_HOST=db
  38. - NEXTCLOUD_ENABLE_DRI_DEVICE=true
Advertisement
Add Comment
Please, Sign In to add comment