onlyoffice/docker-compose.yml

51 lines
1.5 KiB
YAML

services:
onlyoffice:
image: onlyoffice/documentserver:latest
container_name: onlyoffice-documentserver
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- DB_TYPE=postgres
- DB_HOST=host.docker.internal
- DB_PORT=5432
- DB_NAME=onlyoffice
- DB_USER=vignesh
- DB_PWD=vignesh_secret_pass_2026
- AWS_REGION=ap-south-2
- AWS_DEFAULT_REGION=ap-south-2
- EXAMPLE_ENABLED=false
- JWT_ENABLED=true
- JWT_SECRET=vignesh_onlyoffice_secret_key_2026
- USE_UNAUTHORIZED_STORAGE=true
ports:
- "127.0.0.1:8083:80"
volumes:
- ./data:/var/www/onlyoffice/Data
- ./logs:/var/log/onlyoffice
- ./custom-local.json:/etc/onlyoffice/documentserver/local-production-linux.json
portal:
build:
context: ./portal
dockerfile: Dockerfile
container_name: onlyoffice-portal
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- PORT=8084
- PGHOST=host.docker.internal
- PGPORT=5432
- PGDATABASE=onlyoffice
- PGUSER=vignesh
- PGPASSWORD=vignesh_secret_pass_2026
- AWS_REGION=ap-south-2
- AWS_S3_BUCKET=trypostmedia
- AWS_S3_PREFIX=documents/
- JWT_SECRET=vignesh_onlyoffice_secret_key_2026
- DOCSERVER_PUBLIC_URL=https://documents.tradhox.com
ports:
- "127.0.0.1:8084:8084"
depends_on:
- onlyoffice