mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-22 17:33:12 +00:00
Email config in entrypoint
This commit is contained in:
@@ -54,6 +54,15 @@ services:
|
|||||||
- INSTALL_SERVER_NAME
|
- INSTALL_SERVER_NAME
|
||||||
- INSTALL_RABBITMQ_USER=$RABBITMQ_DEFAULT_USER
|
- INSTALL_RABBITMQ_USER=$RABBITMQ_DEFAULT_USER
|
||||||
- INSTALL_RABBITMQ_PASSWORD=$RABBITMQ_DEFAULT_PASS
|
- INSTALL_RABBITMQ_PASSWORD=$RABBITMQ_DEFAULT_PASS
|
||||||
|
- PHRASEANET_EMITTER_EMAIL
|
||||||
|
- PHRASEANET_MAIL_OBJECT_PREFIX
|
||||||
|
- PHRASEANET_SMTP_ENABLED
|
||||||
|
- PHRASEANET_SMTP_HOST
|
||||||
|
- PHRASEANET_SMTP_PORT
|
||||||
|
- PHRASEANET_SMTP_AUTH_ENABLED
|
||||||
|
- PHRASEANET_SMTP_SECURE_MODE
|
||||||
|
- PHRASEANET_SMTP_USER
|
||||||
|
- PHRASEANET_SMTP_PASSWORD
|
||||||
volumes:
|
volumes:
|
||||||
- config_vol:/var/alchemy/Phraseanet/config:rw
|
- config_vol:/var/alchemy/Phraseanet/config:rw
|
||||||
- data_vol:/var/alchemy/Phraseanet/datas:rw
|
- data_vol:/var/alchemy/Phraseanet/datas:rw
|
||||||
|
@@ -18,8 +18,19 @@ chown -R app:app \
|
|||||||
FILE=config/configuration.yml
|
FILE=config/configuration.yml
|
||||||
|
|
||||||
if [ -f "$FILE" ]; then
|
if [ -f "$FILE" ]; then
|
||||||
bin/setup system:config set registry.general.title $PHRASEANET_PROJECT_NAME
|
|
||||||
echo "$FILE exists, skip setup."
|
echo "$FILE exists, skip setup."
|
||||||
|
bin/setup system:config set registry.general.title $PHRASEANET_PROJECT_NAME
|
||||||
|
if [[ $PHRASEANET_SMTP_ENABLED=true ]]; then
|
||||||
|
bin/setup system:config set registry.email.smtp-enabled $PHRASEANET_SMTP_ENABLED
|
||||||
|
bin/setup system:config set registry.email.smtp-auth-enabled $PHRASEANET_SMTP_AUTH_ENABLED
|
||||||
|
bin/setup system:config set registry.email.smtp-auth-secure-mode $PHRASEANET_SMTP_SECURE_MODE
|
||||||
|
bin/setup system:config set registry.email.smtp-auth-host $PHRASEANET_SMTP_HOST
|
||||||
|
bin/setup system:config set registry.email.smtp-auth-port $PHRASEANET_SMTP_PORT
|
||||||
|
bin/setup system:config set registry.email.smtp-user $PHRASEANET_SMTP_USER
|
||||||
|
bin/setup system:config set registry.email.smtp-password $PHRASEANET_SMTP_PASSWORD
|
||||||
|
bin/setup system:config set registry.email.emitter-email $PHRASEANET_EMITTER_EMAIL
|
||||||
|
bin/setup system:config set registry.email.prefix $PHRASEANET_MAIL_OBJECT_PREFIX
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "$FILE doesn't exist, entering setup..."
|
echo "$FILE doesn't exist, entering setup..."
|
||||||
runuser app -c docker/phraseanet/auto-install.sh
|
runuser app -c docker/phraseanet/auto-install.sh
|
||||||
|
Reference in New Issue
Block a user