Codegyre / DockerPostfixDovecot

Simple email server executed in Docker container
25 stars 21 forks source link

mariadb container #1

Open ghost opened 9 years ago

ghost commented 9 years ago

Hi thank you for this useful programme How can i connect to mariadb container.

docker run -i -t --link mariadb_single_container:mysql -e APP_HOST=serverha.tk -e DB_NAME=mail -e DB_USER=root -e DB_PASSWORD=ZZr2gSSwKcZsqCiP -p 25:25 -p 110:110 -p 143:143 -p 995:995 -p 587:587 -v /home/vmail:/home/vmail/ mailserver

when i run this command stop here and not continue ;

Running Dovecot + Postfix Host: serverha.tk (should be set) Database: mail (should be set) Available environment vars: APP_HOST required, DB_NAME required, DB_USER, DB_PASSWORD postfix/postfix-script: starting the Postfix mail system

please help me Thanks

milovanderlinden commented 8 years ago

When you add -e DB_HOST= and set the name or ip of your mysql server, this issue is fixed.