services: onlyoffice: image: onlyoffice/documentserver:latest restart: unless-stopped stop_grace_period: 60s environment: - JWT_ENABLED=true - JWT_SECRET=${JWT_SECRET:?required} # - ALLOW_PRIVATE_IP_ADDRESS=${ALLOW_PRIVATE_IP_ADDRESS:-false} volumes: - onlyoffice-data:/var/www/onlyoffice/Data - onlyoffice-lib:/var/lib/onlyoffice - onlyoffice-logs:/var/log/onlyoffice healthcheck: test: ["CMD-SHELL", "curl -fsS http://localhost/healthcheck | grep -qx true"] interval: 30s timeout: 10s retries: 5 start_period: 120s volumes: onlyoffice-data: onlyoffice-lib: onlyoffice-logs: