Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "2.2"
- services:
- nextcloud:
- image: ghcr.io/linuxserver/nextcloud:latest
- container_name: nextcloud
- network_mode: swag_default
- environment:
- - PUID=1000
- - PGID=100
- - TZ=America/Indiana/Indianapolis
- volumes:
- - /NAS/AppData/nextcloud:/config
- - /NAS/Media/.Nextcloud:/data
- - /etc/localtime:/etc/localtime:ro
- depends_on:
- - mariadb
- ports:
- - 450:443
- restart: unless-stopped
- mariadb:
- image: ghcr.io/linuxserver/mariadb:latest
- container_name: nextclouddb
- network_mode: swag_default
- environment:
- - PUID=1000
- - PGID=100
- - MYSQL_ROOT_PASSWORD=**********
- volumes:
- - /NAS/AppData/nextclouddb:/config
- - /etc/localtime:/etc/localtime:ro
- restart: unless-stopped
- ---
- version: '2'
- services:
- documentserver:
- image: onlyoffice/documentserver
- container_name: documentserver
- network_mode: swag_default
- volumes:
- - /NAS/AppData/onlyoffice:/var/log/onlyoffice
- environment:
- - JWT_ENABLED=true
- - JWT_SECRET=*******
- ports:
- - 8805:80
- restart: unless-stopped
- documentserver.subdomain.conf
- ## Version 2021/05/18
- # Make sure that your dns has a cname set for onlyoffice named "documentserver"
- # Make sure that the onlyoffice documentserver container is named "documentserver"
- server {
- listen 443 ssl;
- listen [::]:443 ssl;
- server_name documentserver.*;
- include /config/nginx/ssl.conf;
- client_max_body_size 0;
- #enable for ldap auth, fill in ldap details in ldap.conf
- #include /config/nginx/ldap.conf;
- # enable for Authelia
- #include /config/nginx/authelia-server.conf;
- location / {
- #enable the next two lines for http auth
- #auth_basic "Restricted";
- #auth_basic_user_file /config/nginx/.htpasswd;
- #enable the next two lines for ldap auth
- #auth_request /auth;
- #error_page 401 =200 /ldaplogin;
- # enable for Authelia
- #include /config/nginx/authelia-location.conf;
- include /config/nginx/proxy.conf;
- include /config/nginx/resolver.conf;
- set $upstream_app documentserver;
- set $upstream_port 80;
- set $upstream_proto http;
- proxy_pass $upstream_proto://$upstream_app:$upstream_port;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment