Guest User

Untitled

a guest
Dec 20th, 2021
866
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. version: "2.2"
  2. services:
  3. nextcloud:
  4. image: ghcr.io/linuxserver/nextcloud:latest
  5. container_name: nextcloud
  6. network_mode: swag_default
  7. environment:
  8. - PUID=1000
  9. - PGID=100
  10. - TZ=America/Indiana/Indianapolis
  11. volumes:
  12. - /NAS/AppData/nextcloud:/config
  13. - /NAS/Media/.Nextcloud:/data
  14. - /etc/localtime:/etc/localtime:ro
  15. depends_on:
  16. - mariadb
  17. ports:
  18. - 450:443
  19. restart: unless-stopped
  20. mariadb:
  21. image: ghcr.io/linuxserver/mariadb:latest
  22. container_name: nextclouddb
  23. network_mode: swag_default
  24. environment:
  25. - PUID=1000
  26. - PGID=100
  27. - MYSQL_ROOT_PASSWORD=**********
  28. volumes:
  29. - /NAS/AppData/nextclouddb:/config
  30. - /etc/localtime:/etc/localtime:ro
  31. restart: unless-stopped
  32.  
  33.  
  34. ---
  35. version: '2'
  36. services:
  37. documentserver:
  38. image: onlyoffice/documentserver
  39. container_name: documentserver
  40. network_mode: swag_default
  41. volumes:
  42. - /NAS/AppData/onlyoffice:/var/log/onlyoffice
  43. environment:
  44. - JWT_ENABLED=true
  45. - JWT_SECRET=*******
  46. ports:
  47. - 8805:80
  48. restart: unless-stopped
  49.  
  50.  
  51. documentserver.subdomain.conf
  52.  
  53. ## Version 2021/05/18
  54. # Make sure that your dns has a cname set for onlyoffice named "documentserver"
  55. # Make sure that the onlyoffice documentserver container is named "documentserver"
  56.  
  57. server {
  58. listen 443 ssl;
  59. listen [::]:443 ssl;
  60.  
  61. server_name documentserver.*;
  62.  
  63. include /config/nginx/ssl.conf;
  64.  
  65. client_max_body_size 0;
  66.  
  67. #enable for ldap auth, fill in ldap details in ldap.conf
  68. #include /config/nginx/ldap.conf;
  69.  
  70. # enable for Authelia
  71. #include /config/nginx/authelia-server.conf;
  72.  
  73. location / {
  74. #enable the next two lines for http auth
  75. #auth_basic "Restricted";
  76. #auth_basic_user_file /config/nginx/.htpasswd;
  77.  
  78. #enable the next two lines for ldap auth
  79. #auth_request /auth;
  80. #error_page 401 =200 /ldaplogin;
  81.  
  82. # enable for Authelia
  83. #include /config/nginx/authelia-location.conf;
  84.  
  85. include /config/nginx/proxy.conf;
  86. include /config/nginx/resolver.conf;
  87. set $upstream_app documentserver;
  88. set $upstream_port 80;
  89. set $upstream_proto http;
  90. proxy_pass $upstream_proto://$upstream_app:$upstream_port;
  91.  
  92. }
  93. }
  94.  
  95.  
Advertisement
Add Comment
Please, Sign In to add comment