Advertisement
Nitro2985

Nextcloud Docker Setup

Jan 12th, 2021 (edited)
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. version: "2"
  2. services:
  3. nextcloud:
  4. image: linuxserver/nextcloud
  5. container_name: nextcloud
  6. environment:
  7. - PUID=1000 #change PUID if needed
  8. - PGID=100 #change PGID if needed
  9. - TZ=America/New_York
  10. volumes:
  11. - /srv/dev-disk-by-label-Content/AppData/nextcloud/config:/config
  12. - /srv/dev-disk-by-label-Content/AppData/nextcloud/data:/data
  13. depends_on:
  14. - mariadb
  15. # ports: # uncomment this and the next line if you want to bypass the proxy
  16. # - 450:443
  17. restart: unless-stopped
  18. mariadb:
  19. image: linuxserver/mariadb
  20. container_name: nextclouddb
  21. environment:
  22. - PUID=1000 #change PUID if needed
  23. - PGID=100 #change PGID if needed
  24. - MYSQL_ROOT_PASSWORD=
  25. - TZ=America/New_York
  26. volumes:
  27. - /srv/dev-disk-by-label-Content/AppData/nextcloud/nextclouddb:/config
  28. restart: unless-stopped
  29. swag:
  30. image: linuxserver/swag #swag is the replacement for letsencrypt (see link below)
  31. container_name: swag
  32. cap_add:
  33. - NET_ADMIN
  34. environment:
  35. - PUID=1000 #change PUID if needed
  36. - PGID=100 #change PGID if needed
  37. - TZ=America/New_York
  38. - URL=nitro2985.duckdns.org
  39. - SUBDOMAINS=www,
  40. - VALIDATION=duckdns
  41. - DUCKDNSTOKEN=token
  42. - EMAIL=email
  43. volumes:
  44. - /srv/dev-disk-by-label-Content/AppData/swag:/config
  45. ports:
  46. - 444:443
  47. - 81:80
  48. restart: unless-stopped
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement