Shadowghost / mailcow-mailman3-dockerized

Mailcow combined with Mailman3
35 stars 3 forks source link

Database Connection Issue #4

Closed roddajohn closed 6 years ago

roddajohn commented 6 years ago

After messing around with Apache2 modules, I got everything working, to be greeted by a database connection error.

screen shot 2018-07-13 at 9 30 50 pm

There's likely some dumb setting that I forgot about, but it seems like this should be handled by the docker setup.

Shadowghost commented 6 years ago

Database settings for mailcow are handled by the following variables in your .env file:

# ------------------------------------
# Mailcow SQL database configuration
# ------------------------------------
MCDBNAME=mailcow
MCDBUSER=mailcow
# Please use long, random alphanumeric strings (A-Za-z0-9)
MCDBPASS=
MCDBROOT=

If you moved your installation from an existing mailcow install, keep in mind that the variable's name changed from DBPASS to MCDBPASS and from DBROOT to MCDBROOT.

You can also check the docker logs with docker-compose logs -f mysql-mailcow.

Btw: I don't have this problems on a fresh setup.

roddajohn commented 6 years ago

Problem was fixed by reinstalling docker and docker-compose—there were hanging images.

Shadowghost commented 6 years ago

Nice to hear, that you've figured it out :)