Files
mnote/docker-compose.onlyoffice.dev.yml
T

51 lines
1.7 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
version: "3.9"
services:
onlyoffice-dev:
image: onlyoffice/documentserver:9.2.1
container_name: onlyoffice-dev
restart: unless-stopped
ports:
- "8081:80" # 本地访问 http://localhost:8081
environment:
- JWT_ENABLED=false # 关闭内置 JWT,改用外部 Supabase JWT
- DOCUMENT_SERVER_JWT_ENABLED=false
- LANG=zh_CN.UTF-8
- LC_ALL=zh_CN.UTF-8
- ALLOW_PRIVATE_IP_ADDRESS=true # 允许访问宿主机私网地址(Supabase 签名 URL
- DB_TYPE=postgres
- DB_HOST=onlyoffice-postgres
- DB_PORT=5432
- DB_NAME=onlyoffice
- DB_USER=onlyoffice
- DB_PWD=onlyoffice
volumes:
- ./onlyoffice-web-apps:/var/www/onlyoffice/documentserver/web-apps # 前端源码,可直接改工具栏/菜单
- ./onlyoffice-plugins:/var/www/onlyoffice/documentserver/sdkjs-plugins # 插件源码,支持热更新
- ./onlyoffice-data:/var/www/onlyoffice/Data # 用户数据、缓存
- ./onlyoffice-fonts:/usr/share/fonts/truetype/custom # 自定义字体(可选)
extra_hosts:
- "host.docker.internal:host-gateway" # 方便插件/前端直连宿主机 FastAPI/LightRAG
depends_on:
- onlyoffice-postgres
onlyoffice-postgres:
image: postgres:14
container_name: onlyoffice-postgres
restart: unless-stopped
environment:
- POSTGRES_DB=onlyoffice
- POSTGRES_USER=onlyoffice
- POSTGRES_PASSWORD=onlyoffice
volumes:
- onlyoffice-pg-data:/var/lib/postgresql/data
ports:
- "55432:5432"
networks:
default:
name: onlyoffice-dev-net
volumes:
onlyoffice-pg-data: