Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Docker secrets #295

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions strapi/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/bin/sh
set -ea

# Allow sensitive settings to be defined in a file
# in order to support Docker secrets
if [ -n "${DATABASE_PASSWORD_FILE}" ]; then
DATABASE_PASSWORD=$(cat "$DATABASE_PASSWORD_FILE")
export DATABASE_PASSWORD
fi

if [ "$1" = "strapi" ]; then

if [ ! -f "package.json" ]; then
Expand Down