🖥️ 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/* /web/detached/*
/drive/* /drive/*
/configuration /configuration
### Only Office ###
/onlyoffice_data/
/onlyoffice_postgres_data/
/.docker-conf/
+55 -3
View File
@@ -36,7 +36,7 @@ services:
networks: networks:
- tdrive_network - tdrive_network
fronend: frontend:
build: build:
context: . context: .
dockerfile: docker/tdrive-frontend/Dockerfile dockerfile: docker/tdrive-frontend/Dockerfile
@@ -61,20 +61,72 @@ services:
onlyoffice-connector: onlyoffice-connector:
image: onlyoffice-connector image: onlyoffice-connector
hostname: onlyoffice_connector
environment: environment:
- CREDENTIALS_ENDPOINT=http://tdrive_node:4000 - CREDENTIALS_ENDPOINT=http://tdrive_node:4000
- ONLY_OFFICE_SERVER=http://localhost:8090/ - ONLY_OFFICE_SERVER=http://localhost:8090/
- SERVER_ORIGIN= - SERVER_ORIGIN=http://onlyoffice-connector:5000
- SERVER_PORT=5000 - SERVER_PORT=5000
- SERVER_PREFIX=/plugins/onlyoffice - SERVER_PREFIX=/plugins/onlyoffice
- CREDENTIALS_ID=tdrive_onlyoffice - CREDENTIALS_ID=tdrive_onlyoffice
- CREDENTIALS_SECRET=c1cc66db78e1d3bb4713c55d5ab2 - CREDENTIALS_SECRET=c1cc66db78e1d3bb4713c55d5ab2
ports: ports:
- 5000:5000 - 5000:5000
depends_on:
- onlyoffice
networks: networks:
- tdrive_network - 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: networks:
tdrive_network: tdrive_network:
driver: bridge driver: bridge