Skip to content

Instantly share code, notes, and snippets.

@mqu
Last active January 20, 2020 05:17
Show Gist options
  • Save mqu/6b71ed396e018eb948b40ef8e4340c20 to your computer and use it in GitHub Desktop.
Save mqu/6b71ed396e018eb948b40ef8e4340c20 to your computer and use it in GitHub Desktop.
nextcloud + onlyoffice / docker-compose.yml
# Marc Quinton - nextcloud + onlyoffice / docker-compose.yml
# date : august 2019
# tags : docker, docker-compose, onlyonffice, nextcloud.
version: '3'
services:
db:
image: postgres:alpine
restart: unless-stopped
hostname: db
networks:
- nextcloud
environment:
- POSTGRES_HOST=db
- POSTGRES_DB=nextcloud
volumes:
- ./data/db:/var/lib/postgresql/data
env_file:
- nextcloud.env
app:
image: nextcloud:production-apache
restart: unless-stopped
hostname: app
networks:
- nextcloud
depends_on:
- db
- onlyoffice
environment:
- NEXTCLOUD_ADMIN_USER=admin
- NEXTCLOUD_ADMIN_PASSWORD=admin
- NEXTCLOUD_TRUSTED_DOMAINS=mydomain.local
- POSTGRES_HOST=db
- POSTGRES_DB=nextcloud
env_file:
- nextcloud.env
ports:
- 8906:80
volumes:
- ./data/nextcloud/html:/var/www/html
# onlyoffice document server :
# in nextcloud admin / onlyoffice / server : http://onlyoffice/ ; secret : "top-secret"
onlyoffice:
hostname: onlyoffice
image: onlyoffice/documentserver:latest
stdin_open: true
tty: true
restart: unless-stopped
networks:
- nextcloud
environment:
- JWT_ENABLED=true
- JWT_SECRET=top-secret
expose:
- '80'
- '443'
volumes:
- only_data:/var/www/onlyoffice/Data
- only_log:/var/log/onlyoffice
volumes:
only_data:
only_log:
networks:
nextcloud:
@mqu
Copy link
Author

mqu commented Aug 30, 2019

currently, I am facing this error : ONLYOFFICE/onlyoffice-nextcloud#13 ; unable to save documents from "document-server".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment