Skip to content

Instantly share code, notes, and snippets.

@RANUX
Last active April 24, 2025 12:29
Show Gist options
  • Save RANUX/f4a186251ebdf3f574bb6a4f03adcd41 to your computer and use it in GitHub Desktop.
Save RANUX/f4a186251ebdf3f574bb6a4f03adcd41 to your computer and use it in GitHub Desktop.
onlyoffice document server docker-compose.yml file for arm64 (Macbook pro)
networks:
onlyoffice:
driver: bridge
services:
onlyoffice-document-server:
image: onlyoffice/documentserver:8.2
platform: linux/arm64
container_name: onlyoffice-document-server
stdin_open: true
tty: true
restart: always
environment:
- JWT_ENABLED=true
- JWT_SECRET=jwt_secret
- JWT_HEADER=AuthorizationJwt
- JWT_IN_BODY=true
volumes:
- document_data:/var/www/onlyoffice/Data
- document_log:/var/log/onlyoffice
- document_forgotten:/var/lib/onlyoffice/documentserver/App_Data/cache/files/forgotten
- ./certs:/var/www/onlyoffice/Data/certs:ro
- ./config/supervisor/ds-example.conf:/etc/supervisor/conf.d/ds-example.conf
networks:
- onlyoffice
ports:
- '8000:8000'
- '80:80'
- '443:443'
- '3000:3000'
volumes:
document_data:
document_log:
document_forgotten:
@RANUX
Copy link
Author

RANUX commented Apr 24, 2025

How to generate certs:

mkdir -p ./certs

openssl genrsa -out ./certs/onlyoffice.key 2048

openssl req -new -key ./certs/onlyoffice.key -out ./certs/onlyoffice.csr -subj "/C=US/ST=State/L=City/O=Organization/CN=localhost"


openssl x509 -req -days 365 -in ./certs/onlyoffice.csr -signkey ./certs/onlyoffice.key -out ./certs/onlyoffice.crt

openssl dhparam -out ./certs/dhparam.pem 2048

chmod 400 ./certs/onlyoffice.key

How to run examples

mkdir -p config/supervisor/

touch ./config/supervisor/ds-example.conf

Copy past config

[program:example]
command=/var/www/onlyoffice/documentserver-example/example
directory=/var/www/onlyoffice/documentserver-example/
user=ds
environment=NODE_ENV=production-linux,NODE_CONFIG_DIR=/etc/onlyoffice/documentserver-example,NODE_DISABLE_COLORS=1,NODE_EXTRA_CA_CERTS=/usr/share/ca-certificates/ds/onlyoffice.crt
stdout_logfile=/var/log/onlyoffice/documentserver-example/out.log
stdout_logfile_backups=0
stdout_logfile_maxbytes=0
stderr_logfile=/var/log/onlyoffice/documentserver-example/err.log
stderr_logfile_backups=0
stderr_logfile_maxbytes=0
autostart=true
autorestart=true
redirect_stderr=true

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