Integrate Pandora with postfix
This commit is contained in:
parent
ffc3cd1a6a
commit
cf42cf349c
@ -3,8 +3,9 @@
|
|||||||
SOURCE_DIR=$(realpath $(dirname "${0}"))/pandora
|
SOURCE_DIR=$(realpath $(dirname "${0}"))/pandora
|
||||||
|
|
||||||
# Check prerequisites
|
# 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 postgres || $(realpath $(dirname "${0}"))/postgres.sh
|
||||||
|
docker image ls | grep -q rabbitmq || $(realpath $(dirname "${0}"))/rabbitmq.sh
|
||||||
|
|
||||||
# Build Docker container
|
# Build Docker container
|
||||||
docker build -t pandora ${SOURCE_DIR}
|
docker build -t pandora ${SOURCE_DIR}
|
||||||
|
@ -4,7 +4,7 @@ description="Pan.do/ra docker container"
|
|||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
need docker net
|
need docker net
|
||||||
use dns logger netmount
|
use dns logger netmount postfix
|
||||||
after postgres rabbitmq
|
after postgres rabbitmq
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -12,6 +12,7 @@ start() {
|
|||||||
/usr/bin/docker run -d --rm \
|
/usr/bin/docker run -d --rm \
|
||||||
--name pandora \
|
--name pandora \
|
||||||
-h pandora \
|
-h pandora \
|
||||||
|
--link postfix \
|
||||||
--link postgres \
|
--link postgres \
|
||||||
--link rabbitmq \
|
--link rabbitmq \
|
||||||
-p 127.0.0.1:8002:8002 \
|
-p 127.0.0.1:8002:8002 \
|
||||||
|
@ -7,8 +7,12 @@ DATABASES = {
|
|||||||
'PASSWORD': '${PANDORA_PWD}',
|
'PASSWORD': '${PANDORA_PWD}',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BROKER_URL = 'amqp://pandora:${PANDORA_RABBIT_PWD}@rabbitmq:5672//pandora'
|
|
||||||
DB_GIN_TRGM = True
|
DB_GIN_TRGM = True
|
||||||
|
|
||||||
|
BROKER_URL = 'amqp://pandora:${PANDORA_RABBIT_PWD}@rabbitmq:5672//pandora'
|
||||||
|
|
||||||
|
EMAIL_HOST = 'postfix'
|
||||||
|
|
||||||
XACCELREDIRECT = True
|
XACCELREDIRECT = True
|
||||||
|
|
||||||
GOOGLE_API_KEY = 'AIzaSyBvIF3D550tlpL6o1xRrDurGo-81VhHlOw'
|
GOOGLE_API_KEY = 'AIzaSyBvIF3D550tlpL6o1xRrDurGo-81VhHlOw'
|
||||||
|
Loading…
Reference in New Issue
Block a user