oliverv

install-collabora-docker

Nov 15th, 2018
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. install-collabora-docker.txt
  2. Step 1: Install Docker on Ubuntu 16.04
  3.  
  4. sudo apt update
  5. sudo apt install docker.io
  6.  
  7. sudo systemctl status docker
  8.  
  9. sudo systemctl start docker
  10.  
  11. sudo systemctl enable docker
  12.  
  13. sudo mkdir /etc/systemd/system/docker.service.d
  14.  
  15. sudo nano /etc/systemd/system/docker.service.d/DeviceMapper.conf
  16.  
  17. Paste the following text into the file.
  18.  
  19. [Service]
  20. ExecStart=
  21. ExecStart=/usr/bin/dockerd --storage-driver=devicemapper -H fd://
  22.  
  23. sudo systemctl daemon-reload
  24.  
  25. sudo systemctl restart docker
  26.  
  27. sudo docker info
  28.  
  29. Output:
  30.  
  31. Containers: 1
  32. Running: 1
  33. Paused: 0
  34. Stopped: 0
  35. Images: 1
  36. Server Version: 1.13.1
  37. Storage Driver: devicemapper
  38. Pool Name: docker-253:1-515579-pool
  39.  
  40. Step 2 install Collabora
  41.  
  42. sudo docker pull collabora/code
  43.  
  44. sudo docker run -t -d -p 127.0.0.1:9980:9980 -e 'domain=your_NextCloud\\.your_domain\\.tld' --restart always --cap-add MKNOD collabora/code
  45.  
  46. Nginx.vhost
  47.  
  48. Put the following text into the file.
  49.  
  50. server {
  51. listen 80;
  52. server_name office.your-domain.com;
  53.  
  54. root /usr/share/nginx/office;
  55. }
  56.  
  57. Vhost-ssl
  58.  
  59. server {
  60. listen 443 ssl;
  61. server_name office.your-domain.com;
  62. root /usr/share/nginx/office;
  63.  
  64. ssl_protocols TLSv1.1 TLSv1.2;
  65. ssl_certificate /etc/letsencrypt/live/office.your-domain.com/fullchain.pem;
  66. ssl_certificate_key /etc/letsencrypt/live/office.your-domain.com/privkey.pem;
  67.  
  68. # static files
  69. location ^~ /loleaflet {
  70. proxy_pass https://localhost:9980;
  71. proxy_set_header Host $http_host;
  72. }
  73.  
  74. # WOPI discovery URL
  75. location ^~ /hosting/discovery {
  76. proxy_pass https://localhost:9980;
  77. proxy_set_header Host $http_host;
  78. }
  79.  
  80. # websockets, download, presentation and image upload
  81. location ^~ /lool {
  82. proxy_pass https://localhost:9980;
  83. proxy_set_header Upgrade $http_upgrade;
  84. proxy_set_header Connection "upgrade";
  85. proxy_set_header Host $http_host;
  86. }
  87. }
  88.  
  89.  
  90. sudo nginx -t
  91.  
  92. sudo systemctl reload nginx
Advertisement
Add Comment
Please, Sign In to add comment