Integrate Pandora with postfix

This commit is contained in:
Disassembler 2018-02-03 13:36:09 +01:00
parent ffc3cd1a6a
commit cf42cf349c
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
3 changed files with 9 additions and 3 deletions

View File

@ -3,8 +3,9 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/pandora
# Check prerequisites
docker image ls | grep -q rabbitmq || $(realpath $(dirname "${0}"))/rabbitmq.sh
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 rabbitmq || $(realpath $(dirname "${0}"))/rabbitmq.sh
# Build Docker container
docker build -t pandora ${SOURCE_DIR}

View File

@ -4,7 +4,7 @@ description="Pan.do/ra docker container"
depend() {
need docker net
use dns logger netmount
use dns logger netmount postfix
after postgres rabbitmq
}
@ -12,6 +12,7 @@ start() {
/usr/bin/docker run -d --rm \
--name pandora \
-h pandora \
--link postfix \
--link postgres \
--link rabbitmq \
-p 127.0.0.1:8002:8002 \

View File

@ -7,8 +7,12 @@ DATABASES = {
'PASSWORD': '${PANDORA_PWD}',
}
}
BROKER_URL = 'amqp://pandora:${PANDORA_RABBIT_PWD}@rabbitmq:5672//pandora'
DB_GIN_TRGM = True
BROKER_URL = 'amqp://pandora:${PANDORA_RABBIT_PWD}@rabbitmq:5672//pandora'
EMAIL_HOST = 'postfix'
XACCELREDIRECT = True
GOOGLE_API_KEY = 'AIzaSyBvIF3D550tlpL6o1xRrDurGo-81VhHlOw'