Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-onlyoffice-documentserver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
docker-onlyoffice-documentserver
Commits
10d54591
Commit
10d54591
authored
6 years ago
by
Alexey Golubev
Browse files
Options
Downloads
Plain Diff
v5.2.4
parents
0154bb08
96c37d73
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker-compose.yml
+1
-0
1 addition, 0 deletions
docker-compose.yml
run-document-server.sh
+8
-3
8 additions, 3 deletions
run-document-server.sh
with
9 additions
and
3 deletions
docker-compose.yml
+
1
−
0
View file @
10d54591
...
@@ -17,6 +17,7 @@ services:
...
@@ -17,6 +17,7 @@ services:
networks
:
networks
:
-
onlyoffice
-
onlyoffice
volumes
:
volumes
:
-
/etc/onlyoffice
-
/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
...
...
This diff is collapsed.
Click to expand it.
run-document-server.sh
+
8
−
3
View file @
10d54591
...
@@ -67,7 +67,7 @@ read_setting(){
...
@@ -67,7 +67,7 @@ read_setting(){
REDIS_SERVER_HOST
=
${
REDIS_SERVER_HOST
:-
$(
${
JSON
}
services.CoAuthoring.redis.host
)
}
REDIS_SERVER_HOST
=
${
REDIS_SERVER_HOST
:-
$(
${
JSON
}
services.CoAuthoring.redis.host
)
}
REDIS_SERVER_PORT
=
${
REDIS_SERVER_PORT
:-
6379
}
REDIS_SERVER_PORT
=
${
REDIS_SERVER_PORT
:-
6379
}
DS_LOG_LEVEL
=
${
DS_LOG_LEVEL
:-
$(
${
JSON_LOG
}
levels.nodeJS
)
}
DS_LOG_LEVEL
=
${
DS_LOG_LEVEL
:-
$(
${
JSON_LOG
}
categories.default.level
)
}
}
}
parse_rabbitmq_url
(){
parse_rabbitmq_url
(){
...
@@ -198,7 +198,7 @@ create_postgresql_tbl(){
...
@@ -198,7 +198,7 @@ create_postgresql_tbl(){
# Create db on remote server
# Create db on remote server
if
$PSQL
-lt
|
cut
-d
\|
-f
1 |
grep
-qw
|
grep
0
;
then
if
$PSQL
-lt
|
cut
-d
\|
-f
1 |
grep
-qw
|
grep
0
;
then
$CREATEDB
$DB_NAME
$CREATEDB
$
POSTGRESQL_SERVER_
DB_NAME
fi
fi
$PSQL
-d
"
${
POSTGRESQL_SERVER_DB_NAME
}
"
-f
"
${
APP_DIR
}
/server/schema/postgresql/createdb.sql"
$PSQL
-d
"
${
POSTGRESQL_SERVER_DB_NAME
}
"
-f
"
${
APP_DIR
}
/server/schema/postgresql/createdb.sql"
...
@@ -256,7 +256,11 @@ update_supervisor_settings(){
...
@@ -256,7 +256,11 @@ update_supervisor_settings(){
}
}
update_log_settings
(){
update_log_settings
(){
${
JSON_LOG
}
-I
-e
"this.levels.nodeJS = '
${
DS_LOG_LEVEL
}
'"
${
JSON_LOG
}
-I
-e
"this.categories.default.level = '
${
DS_LOG_LEVEL
}
'"
}
update_logrotate_settings
(){
sed
's|\(^su\b\).*|\1 root root|'
-i
/etc/logrotate.conf
}
}
# create base folders
# create base folders
...
@@ -341,6 +345,7 @@ if [ ${ONLYOFFICE_DATA_CONTAINER} != "true" ]; then
...
@@ -341,6 +345,7 @@ if [ ${ONLYOFFICE_DATA_CONTAINER} != "true" ]; then
service supervisor start
service supervisor start
# start cron to enable log rotating
# start cron to enable log rotating
update_logrotate_settings
service cron start
service cron start
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment