mirror of
https://github.com/intellisense/onlyoffice-minio.git
synced 2025-04-19 12:02:23 +03:00
Example of configuring OnlyOffice DocumentServer Cache with S3-Like storage (e.g., Minio).
Prerequisites
Testing
- Clone the repository
git clone git@github.com:intellisense/onlyoffice-minio.git
- Create a
.env
file with the following variables:AWS_ACCESS_KEY_ID=minio-access-key AWS_SECRET_ACCESS_KEY=minio-secret-key ENDPOINT_URL="http://minio:9000" BUCKET_NAME=onlyoffice
- Run
docker compose up --build
- Allow some time for the OnlyOffice DocumentServer to fully start.
- Open the browser and visit the OnlyOffice DocumentServer healthcheck URL at http://127.0.0.1/healthcheck; it should respond with
true
.- If it responds with
false
checkonlyoffice-documentserver
container logs.
- If it responds with
Validating connectivity with Minio
The main.py
file includes a straightforward function to verify S3 storage connectivity by uploading a file and listing keys from an existing bucket (specified in .env.BUCKET_NAME
). This script runs automatically, and the test-app
container should exit with code 0
. Check the logs for validation by executing:
docker logs test-app
You should observe the following logs:
Uploading file "assets/sample.pdf" to S3 bucket "onlyoffice".
File "assets/sample.pdf" uploaded successfully to S3 bucket "onlyoffice".
Listing keys in S3 bucket "onlyoffice"
sample.pdf
To further confirm the successful upload, you can also check the Minio console:
- Login to Minio console http://127.0.0.1:9001.
- Use the
AWS_ACCESS_KEY_ID
value from the.env
file as the username and theAWS_SECRET_ACCESS_KEY
value as the password.
- Use the
- Visit the bucket at http://127.0.0.1:9001/browser/onlyoffice to ensure that the file
sample.pdf
is present.
Description
Languages
Python
90.2%
Dockerfile
9.8%