🖥️ OnlyOffice server (#111)

This commit is contained in:
Montassar Ghanmy
2023-06-26 09:46:21 +01:00
committed by GitHub
parent e2a148b559
commit a8c04591a4
2 changed files with 61 additions and 4 deletions
+5
View File
@@ -140,3 +140,8 @@ docker-compose.yml
/web/detached/*
/drive/*
/configuration
### Only Office ###
/onlyoffice_data/
/onlyoffice_postgres_data/
/.docker-conf/
+56 -4
View File
@@ -35,8 +35,8 @@ services:
- mongo
networks:
- tdrive_network
fronend:
frontend:
build:
context: .
dockerfile: docker/tdrive-frontend/Dockerfile
@@ -61,19 +61,71 @@ services:
onlyoffice-connector:
image: onlyoffice-connector
hostname: onlyoffice_connector
environment:
- CREDENTIALS_ENDPOINT=http://tdrive_node:4000
- ONLY_OFFICE_SERVER=http://localhost:8090/
- SERVER_ORIGIN=
- SERVER_ORIGIN=http://onlyoffice-connector:5000
- SERVER_PORT=5000
- SERVER_PREFIX=/plugins/onlyoffice
- CREDENTIALS_ID=tdrive_onlyoffice
- CREDENTIALS_SECRET=c1cc66db78e1d3bb4713c55d5ab2
ports:
- 5000:5000
depends_on:
- onlyoffice
networks:
- tdrive_network
onlyoffice-rabbitmq:
image: rabbitmq:management
hostname: onlyoffice-rabbitmq
container_name: rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
ports:
- "5672:5672"
- "15672:15672"
volumes:
- ./.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/
- ./.docker-conf/rabbitmq/log/:/var/log/rabbitmq
networks:
- tdrive_network
onlyoffice-postgresql:
image: postgres:13
hostname: onlyoffice-postgresql
environment:
- POSTGRES_DB=onlyoffice
- POSTGRES_USER=onlyoffice
- POSTGRES_PASSWORD=onlyoffice
ports:
- 5432:5432
volumes:
- ./onlyoffice_postgres_data:/var/lib/postgresql/data
networks:
- tdrive_network
onlyoffice:
image: docker.io/onlyoffice/documentserver
hostname: onlyoffice
ports:
- 8090:80
networks:
- tdrive_network
environment:
- AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq
- DB_HOST=onlyoffice-postgresql
- DB_NAME=onlyoffice
- DB_PORT=5432
- DB_TYPE=postgres
- DB_USER=onlyoffice
- JWT_ENABLED=false
depends_on:
- onlyoffice-rabbitmq
- onlyoffice-postgresql
volumes:
- ./onlyoffice_data:/var/www/onlyoffice/Data
networks:
tdrive_network: