ch onlyoffice service name
This commit is contained in:
parent
176041124e
commit
897407f5b0
5 changed files with 39 additions and 52 deletions
|
|
@ -1,10 +0,0 @@
|
||||||
# Nextcloud
|
|
||||||
NEXTCLOUD_DOMAIN=
|
|
||||||
NEXTCLOUD_ADMIN_PASSWORD=
|
|
||||||
NEXTCLOUD_ADMIN_USER=
|
|
||||||
NEXTCLOUD_DB_HOST=
|
|
||||||
NEXTCLOUD_DB_NAME=
|
|
||||||
NEXTCLOUD_DB_PASSWORD=
|
|
||||||
NEXTCLOUD_DB_USER=
|
|
||||||
NEXTCLOUD_TRUSTED_DOMAINS=
|
|
||||||
ONLYOFFICE_JWT_SECRET=
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
source .env
|
|
||||||
source ../core/.env
|
|
||||||
|
|
||||||
docker exec postgres psql -U $POSTGRES_USER -d postgres -c "CREATE USER $NEXTCLOUD_DB_USER WITH PASSWORD '$NEXTCLOUD_DB_PASSWORD';"
|
|
||||||
docker exec postgres psql -U $POSTGRES_USER -d postgres -c "CREATE DATABASE $NEXTCLOUD_DB_NAME OWNER $NEXTCLOUD_DB_USER;"
|
|
||||||
docker exec postgres psql -U $POSTGRES_USER -d $NEXTCLOUD_DB_NAME -c "GRANT ALL PRIVILEGES ON DATABASE $NEXTCLOUD_DB_NAME TO $NEXTCLOUD_DB_USER;"
|
|
||||||
|
|
@ -23,7 +23,7 @@ php /var/www/html/occ --no-warnings app:install onlyoffice
|
||||||
# Set the DocumentServerUrl to the path of the OnlyOffice Document Server
|
# Set the DocumentServerUrl to the path of the OnlyOffice Document Server
|
||||||
php /var/www/html/occ --no-warnings config:system:set onlyoffice DocumentServerUrl --value="/ds-vpath/"
|
php /var/www/html/occ --no-warnings config:system:set onlyoffice DocumentServerUrl --value="/ds-vpath/"
|
||||||
# Set the DocumentServerInternalUrl to the URL of the OnlyOffice Document Server
|
# Set the DocumentServerInternalUrl to the URL of the OnlyOffice Document Server
|
||||||
php /var/www/html/occ --no-warnings config:system:set onlyoffice DocumentServerInternalUrl --value="http://onlyoffice-document-server/"
|
php /var/www/html/occ --no-warnings config:system:set onlyoffice DocumentServerInternalUrl --value="http://onlyoffice-documentserver/"
|
||||||
# Set the StorageUrl to the URL of the Nextcloud Reverse Proxy
|
# Set the StorageUrl to the URL of the Nextcloud Reverse Proxy
|
||||||
php /var/www/html/occ --no-warnings config:system:set onlyoffice StorageUrl --value="http://nextcloud-reverse-proxy/"
|
php /var/www/html/occ --no-warnings config:system:set onlyoffice StorageUrl --value="http://nextcloud-reverse-proxy/"
|
||||||
# Set the JWT secret
|
# Set the JWT secret
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ http {
|
||||||
|
|
||||||
location ~* ^/ds-vpath/ {
|
location ~* ^/ds-vpath/ {
|
||||||
rewrite /ds-vpath/(.*) /$1 break;
|
rewrite /ds-vpath/(.*) /$1 break;
|
||||||
proxy_pass http://onlyoffice-document-server;
|
proxy_pass http://onlyoffice-documentserver;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
|
|
||||||
client_max_body_size 100m;
|
client_max_body_size 100m;
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,28 @@
|
||||||
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
|
||||||
|
|
@ -26,25 +30,26 @@ services:
|
||||||
- /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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue