Integrate CrisisCleanup with Postfix

This commit is contained in:
Disassembler 2018-01-30 17:34:20 +01:00
parent 93a2918206
commit 6015df24b3
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
3 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,7 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/crisiscleanup SOURCE_DIR=$(realpath $(dirname "${0}"))/crisiscleanup
# Check prerequisites # Check prerequisites
docker image ls | grep -q postfix || $(realpath $(dirname "${0}"))/postfix.sh
docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh
# Build Docker container # Build Docker container

View File

@ -4,7 +4,7 @@ description="Crisis Cleanup docker container"
depend() { depend() {
need docker net need docker net
use dns logger netmount use dns logger netmount postfix
after postgres after postgres
} }
@ -12,6 +12,7 @@ start() {
/usr/bin/docker run -d --rm \ /usr/bin/docker run -d --rm \
--name crisiscleanup \ --name crisiscleanup \
-h crisiscleanup \ -h crisiscleanup \
--link postfix \
--link postgres \ --link postgres \
-p 127.0.0.1:8005:8005 \ -p 127.0.0.1:8005:8005 \
-v /srv/crisiscleanup/conf:/srv/crisiscleanup/config \ -v /srv/crisiscleanup/conf:/srv/crisiscleanup/config \

View File

@ -16,7 +16,7 @@ Rails.application.configure do
config.consider_all_requests_local = false config.consider_all_requests_local = false
config.action_controller.perform_caching = true config.action_controller.perform_caching = true
ActionMailer::Base.smtp_settings = { ActionMailer::Base.smtp_settings = {
:address => '127.0.0.1' :address => 'postfix'
} }
config.action_mailer.default_url_options = { config.action_mailer.default_url_options = {
:host => 'www.crisiscleanup.org', :host => 'www.crisiscleanup.org',