Guest User

Untitled

a guest
Sep 9th, 2022
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.93 KB | Software | 0 0
  1. version: '3'
  2. services:
  3.   db:
  4.     image: mariadb:10.5
  5.     restart: always
  6.     command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
  7.     volumes:
  8.      - ./data/db:/var/lib/mysql
  9.     environment:
  10.      - MYSQL_ROOT_PASSWORD=password
  11.       - MYSQL_PASSWORD=password
  12.       - MYSQL_DATABASE=nextcloud
  13.       - MYSQL_USER=nextcloud
  14.  
  15.   app:
  16.     container_name: app-server
  17.     image: nextcloud:fpm
  18.     restart: always
  19.     links:
  20.      - db
  21.     expose:
  22.      - '80'
  23.       - '9000'
  24.     volumes:
  25.      - ./data/app_data:/var/www/html
  26.     environment:
  27.      - MYSQL_PASSWORD=password
  28.       - MYSQL_DATABASE=nextcloud
  29.       - MYSQL_USER=nextcloud
  30.       - MYSQL_HOST=db
  31.  
  32.  
  33.   onlyoffice-document-server:
  34.     container_name: onlyoffice-document-server
  35.     image: onlyoffice/documentserver:latest
  36.     restart: always
  37.     environment:
  38.      - JWT_ENABLED=false
  39.     expose:
  40.      - '80'
  41.       - '443'
  42.     volumes:
  43.      - ./data/document_data:/var/www/onlyoffice/Data
  44.       - ./data/document_log:/var/log/onlyoffice
  45.  
  46.   nginx:
  47.     container_name: nginx-server
  48.     image: nginx
  49.     restart: always
  50.     ports:
  51.      - 8050:80
  52.       - 8443:443
  53.     volumes:
  54.      - ./nginx.conf:/etc/nginx/nginx.conf
  55.       - ./data/app_data:/var/www/html
  56.  
  57. #Then install the only office app for nextcloud
  58. #set ONLYOFFICE Docs address to `/ds-vpath/`
  59. #you'll have to disable certificate verification unless you want to set up ssl certificates but it's kinda useless here
  60. #set `ONLYOFFICE Docs address for internal requests from the server` to `http://onlyoffice-document-server/`
  61. #set `Server address for internal requests from ONLYOFFICE Docs` to `http://nginx-server/`
  62.  
  63. #in the data/app_data/config directory, edit config.php.
  64. #'overwrite.cli.url' => 'https://my.domain.name',
  65. #'overwriteprotocol' => 'https',
  66. #'overwritehost' => 'my.domain.name',
  67.  
  68. #note: I have a reverse proxy server in front of of this, and it has ssl certificates.
Tags: #docker
Advertisement
Add Comment
Please, Sign In to add comment