Integrate CrisisCleanup with Postfix
This commit is contained in:
parent
93a2918206
commit
6015df24b3
@ -3,6 +3,7 @@
|
||||
SOURCE_DIR=$(realpath $(dirname "${0}"))/crisiscleanup
|
||||
|
||||
# Check prerequisites
|
||||
docker image ls | grep -q postfix || $(realpath $(dirname "${0}"))/postfix.sh
|
||||
docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh
|
||||
|
||||
# Build Docker container
|
||||
|
@ -4,7 +4,7 @@ description="Crisis Cleanup docker container"
|
||||
|
||||
depend() {
|
||||
need docker net
|
||||
use dns logger netmount
|
||||
use dns logger netmount postfix
|
||||
after postgres
|
||||
}
|
||||
|
||||
@ -12,6 +12,7 @@ start() {
|
||||
/usr/bin/docker run -d --rm \
|
||||
--name crisiscleanup \
|
||||
-h crisiscleanup \
|
||||
--link postfix \
|
||||
--link postgres \
|
||||
-p 127.0.0.1:8005:8005 \
|
||||
-v /srv/crisiscleanup/conf:/srv/crisiscleanup/config \
|
||||
|
@ -16,7 +16,7 @@ Rails.application.configure do
|
||||
config.consider_all_requests_local = false
|
||||
config.action_controller.perform_caching = true
|
||||
ActionMailer::Base.smtp_settings = {
|
||||
:address => '127.0.0.1'
|
||||
:address => 'postfix'
|
||||
}
|
||||
config.action_mailer.default_url_options = {
|
||||
:host => 'www.crisiscleanup.org',
|
||||
|
Loading…
Reference in New Issue
Block a user