Guest User

Untitled

a guest
May 16th, 2020
71
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3.3'
  2.  
  3. services:
  4.  
  5. db:
  6. restart: unless-stopped
  7. image: postgres:11
  8. networks:
  9. - nextcloud
  10. environment:
  11. - PUID=1000
  12. - PGID=1000
  13. - POSTGRES_USER=nextcloud
  14. - POSTGRES_PASSWORD=password
  15. - POSTGRES_DB=nextcloud
  16. volumes:
  17. - /home/<user>/docker/nextcloud/data:/var/lib/postgresql/data
  18. redis:
  19. image: redis:latest
  20. restart: unless-stopped
  21. networks:
  22. - nextcloud
  23. volumes:
  24. - /home/<user>/docker/nextcloud/redis:/var/lib/redis
  25.  
  26. nextcloud:
  27. image: nextcloud:latest
  28. container_name: nextcloud
  29. restart: unless-stopped
  30. # user: "1000:1000"
  31. networks:
  32. - proxy
  33. - nextcloud
  34. depends_on:
  35. - redis
  36. - db
  37. environment:
  38. - PUID=1000
  39. - PGID=1000
  40. - TZ=Europe/Berlin
  41. - POSTGRES_DB=nextcloud
  42. - POSTGRES_USER=nextcloud
  43. - POSTGRES_PASSWORD=<password>
  44. - POSTGRES_HOST=db
  45. - NEXTCLOUD_ADMIN_USER=admin
  46. - NEXTCLOUD_ADMIN_PASSWORD=<password>
  47. - REDIS_HOST=redis
  48. - NEXTCLOUD_TRUSTED_DOMAINS=example.duckdns.org
  49. - TRUSTED_PROXIES=<blah>
  50. volumes:
  51. - /home/<user>/docker/nextcloud/config:/config
  52. - /home/<user>/docker/nextcloud/ncdata:/var/www/html
  53. # - /path/to/nextcloud/data:/var/www/html/data
  54. labels:
  55. - traefik.http.routers.nextcloud.middlewares=nextcloud,nextcloud_redirect
  56. - traefik.http.routers.nextcloud.tls.certresolver=http
  57. - traefik.http.routers.nextcloud.rule=Host(`<example>.duckdns.org`)
  58. - traefik.http.middlewares.nextcloud.headers.stsSeconds=155520011
  59. - traefik.http.middlewares.nextcloud.headers.stsIncludeSubdomains=true
  60. - traefik.http.middlewares.nextcloud.headers.stsPreload=true
  61. - traefik.http.middlewares.nextcloud_redirect.redirectregex.regex=/.well-known/(card|cal)dav
  62. - traefik.http.middlewares.nextcloud_redirect.redirectregex.replacement=/remote.php/dav/
  63. - traefik.enable=true
  64. - traefik.http.routers.cloud-secure.tls=true
  65. - traefik.http.services.cloud.loadbalancer.server.port=80
  66. - traefik.docker.network=proxy
  67.  
  68.  
  69. networks:
  70. proxy:
  71. external:
  72. name: proxy
  73.  
  74. nextcloud:
  75. internal: true
RAW Paste Data