Files
2026-05-22 02:22:23 -07:00

87 lines
2.3 KiB
YAML

services:
onlyoffice-documentserver:
# build:
# context: .
image: onlyoffice/documentserver #[-de,-ee]
container_name: onlyoffice-documentserver
depends_on:
# - onlyoffice-postgresql
- onlyoffice-rabbitmq
environment:
- DB_TYPE=postgres
- DB_HOST=postgres
- DB_PORT=5432
- DB_NAME=onlyoffice
- DB_USER=onlyoffice
- DB_PWD= # database password here (maybe use an env file?)
- AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq
# Uncomment strings below to enable the JSON Web Token validation.
- JWT_ENABLED=true
- JWT_SECRET= # random sufficiently long string here, save it for later you'll need to give this to nextcloud
- JWT_HEADER=Authorization
- JWT_IN_BODY=true
# ports:
# - '80:80'
# - '443:443'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/info/info.json"]
interval: 30s
retries: 5
start_period: 60s
timeout: 10s
stdin_open: true
restart: unless-stopped
stop_grace_period: 60s
volumes:
- ./certs:/var/www/onlyoffice/Data
- onlyoffice_log:/var/log/onlyoffice
- onlyoffice_cache:/var/lib/onlyoffice/documentserver/App_Data/cache/files
networks:
- nextcloud
- postgres
onlyoffice-rabbitmq:
container_name: onlyoffice-rabbitmq
image: rabbitmq:3
restart: unless-stopped
# expose:
# - '5672'
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "status"]
interval: 10s
retries: 3
start_period: 10s
timeout: 10s
networks:
- nextcloud
# onlyoffice-postgresql:
# container_name: onlyoffice-postgresql
# image: postgres:15
# environment:
# - POSTGRES_DB=onlyoffice
# - POSTGRES_USER=onlyoffice
# - POSTGRES_HOST_AUTH_METHOD=trust
# restart: always
# expose:
# - '5432'
# volumes:
# - postgresql_data:/var/lib/postgresql
# healthcheck:
# test: ["CMD-SHELL", "pg_isready -U onlyoffice"]
# interval: 10s
# retries: 3
# start_period: 10s
# timeout: 10s
volumes:
onlyoffice_log:
onlyoffice_cache:
networks:
nextcloud:
name: "nextcloud"
external: true
postgres:
name: "postgres"
external: true