Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
writeFrame
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
writeFrame
Commits
b3652259
Unverified
Commit
b3652259
authored
Sep 02, 2019
by
Jonas Thelemann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Entrypoint: Respect Docker Secret DB URL File
Sequelize fails otherwise.
parent
19b8a226
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
docker-entrypoint.sh
resources/docker-entrypoint.sh
+6
-0
No files found.
resources/docker-entrypoint.sh
View file @
b3652259
...
...
@@ -12,6 +12,12 @@ if [ "$HMD_IMAGE_UPLOAD_TYPE" != "" ] && [ "$CMD_IMAGE_UPLOAD_TYPE" = "" ]; then
CMD_IMAGE_UPLOAD_TYPE
=
"
$HMD_IMAGE_UPLOAD_TYPE
"
fi
DOCKER_SECRET_DB_URL_FILE_PATH
=
"/run/secrets/dbURL"
if
[
-f
"
$DOCKER_SECRET_DB_URL_FILE_PATH
"
]
;
then
CMD_DB_URL
=
"
$(
cat
$DOCKER_SECRET_DB_URL_FILE_PATH
)
"
fi
if
[
"
$CMD_DB_URL
"
=
""
]
;
then
CMD_DB_URL
=
"postgres://hackmd:hackmdpass@hackmdPostgres:5432/hackmd"
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment