back to origin

This commit is contained in:
rnsrk 2025-04-22 23:33:39 +02:00
parent 8475a0bb1d
commit 9415fcb458
2 changed files with 37 additions and 40 deletions

View file

@ -1,8 +0,0 @@
ONLYOFFICE_JWT_SECRET=
ONLYOFFICE_DB_HOST=postgres
ONLYOFFICE_DB_NAME=
ONLYOFFICE_DB_PASSWORD=
ONLYOFFICE_DB_PORT=5432
ONLYOFFICE_DB_TYPE=postgres
ONLYOFFICE_DB_USER=

View file

@ -1,50 +1,55 @@
services: services:
onlyoffice-document-server: onlyoffice-documentserver:
build: build:
context: . context: .
container_name: onlyoffice-document-server container_name: onlyoffice-documentserver
depends_on: depends_on:
- onlyoffice-postgresql
- onlyoffice-rabbitmq - onlyoffice-rabbitmq
environment: environment:
- DB_TYPE=${ONLYOFFICE_DB_TYPE} - DB_TYPE=postgres
- DB_HOST=${ONLYOFFICE_DB_HOST} - DB_HOST=onlyoffice-postgresql
- DB_PORT=${ONLYOFFICE_DB_PORT} - DB_PORT=5432
- DB_NAME=${ONLYOFFICE_DB_NAME} - DB_NAME=onlyoffice
- DB_USER=${ONLYOFFICE_DB_USER} - DB_USER=onlyoffice
- DB_PWD=${ONLYOFFICE_DB_PASSWORD}
- AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq - AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq
# Uncomment strings below to enable the JSON Web Token validation. # Uncomment strings below to enable the JSON Web Token validation.
- JWT_ENABLED=true #- JWT_ENABLED=true
- JWT_SECRET=${ONLYOFFICE_JWT_SECRET} #- JWT_SECRET=secret
- JWT_HEADER=Authorization #- JWT_HEADER=Authorization
- JWT_IN_BODY=true #- JWT_IN_BODY=true
ports:
- '80:80'
- '443:443'
stdin_open: true stdin_open: true
restart: always
stop_grace_period: 60s stop_grace_period: 60s
volumes: volumes:
- /var/www/onlyoffice/Data - /var/www/onlyoffice/Data
- /var/log/onlyoffice - /var/log/onlyoffice
- /var/lib/onlyoffice/documentserver/App_Data/cache/files - /var/lib/onlyoffice/documentserver/App_Data/cache/files
- /var/www/onlyoffice/documentserver-example/public/files - /var/www/onlyoffice/documentserver-example/public/files
- /usr/share/fonts - /usr/share/fonts
networks:
- database
- nextcloud
- onlyoffice
restart: unless-stopped
onlyoffice-rabbitmq: onlyoffice-rabbitmq:
container_name: onlyoffice-rabbitmq container_name: onlyoffice-rabbitmq
image: rabbitmq image: rabbitmq
restart: unless-stopped restart: always
expose: expose:
- '5672' - '5672'
networks:
- onlyoffice
networks: onlyoffice-postgresql:
database: container_name: onlyoffice-postgresql
external: true image: postgres:12
nextcloud: environment:
external: true - POSTGRES_DB=onlyoffice
onlyoffice: - POSTGRES_USER=onlyoffice
name: onlyoffice - POSTGRES_HOST_AUTH_METHOD=trust
restart: always
expose:
- '5432'
volumes:
- postgresql_data:/var/lib/postgresql
volumes:
postgresql_data: