Integrate Sahana with postfix
This commit is contained in:
		
							parent
							
								
									cf42cf349c
								
							
						
					
					
						commit
						fde06390ea
					
				@ -3,6 +3,7 @@
 | 
			
		||||
SOURCE_DIR=$(realpath $(dirname "${0}"))/sahana
 | 
			
		||||
 | 
			
		||||
# 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="Sahana Eden 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 sahana \
 | 
			
		||||
	-h sahana \
 | 
			
		||||
	--link postfix \
 | 
			
		||||
	--link postgres \
 | 
			
		||||
	-p 127.0.0.1:8001:8001 \
 | 
			
		||||
	-v /srv/sahana/conf:/srv/web2py/applications/eden/models \
 | 
			
		||||
 | 
			
		||||
@ -92,7 +92,7 @@ settings.auth.hmac_key = "${SAHANA_HMAC}"
 | 
			
		||||
 | 
			
		||||
# Email settings
 | 
			
		||||
# Outbound server
 | 
			
		||||
settings.mail.server = "postfix:587"
 | 
			
		||||
settings.mail.server = "postfix:25"
 | 
			
		||||
#settings.mail.tls = True
 | 
			
		||||
# Useful for Windows Laptops:
 | 
			
		||||
# https://www.google.com/settings/security/lesssecureapps
 | 
			
		||||
 | 
			
		||||
@ -3,6 +3,7 @@
 | 
			
		||||
SOURCE_DIR=$(realpath $(dirname "${0}"))/sambro
 | 
			
		||||
 | 
			
		||||
# 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 sahana || docker build -t sahana $(realpath $(dirname "${0}"))/sahana
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -4,7 +4,7 @@ description="SAMBRO 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 sambro \
 | 
			
		||||
	-h sambro \
 | 
			
		||||
	--link postfix \
 | 
			
		||||
	--link postgres \
 | 
			
		||||
	-p 127.0.0.1:8099:8001 \
 | 
			
		||||
	-v /srv/sambro/conf:/srv/web2py/applications/eden/models \
 | 
			
		||||
 | 
			
		||||
@ -92,7 +92,7 @@ settings.auth.hmac_key = "${SAMBRO_HMAC}"
 | 
			
		||||
 | 
			
		||||
# Email settings
 | 
			
		||||
# Outbound server
 | 
			
		||||
settings.mail.server = "postfix:587"
 | 
			
		||||
settings.mail.server = "postfix:25"
 | 
			
		||||
#settings.mail.tls = True
 | 
			
		||||
# Useful for Windows Laptops:
 | 
			
		||||
# https://www.google.com/settings/security/lesssecureapps
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user