while setting mattermost on docker,
i build the image and waiting build
but that send to me a error log(failed to ping db)
what wrong?
my env: ubuntu:22.04
mattermost download = on docker
while setting mattermost on docker,
i build the image and waiting build
but that send to me a error log(failed to ping db)
my env: ubuntu:22.04
mattermost download = on docker
i check my docker ps and they r running.
this is mattermost logs
Just because the socket is open inside of the container doesn’t mean it’s reachable by anything outside of it. If you can’t use psql from the host or another OS or container to connect, Mattermost won’t be able to connect either. Speaking of which, support for MySQL is ending pretty quickly, I’d recommend migrating to Postgres ASAP. Migration guidelines from MySQL to PostgreSQL - Mattermost documentation
thank you for answers!
so i should do migrating to psql?
and on mattermost can’t use mysql?
docker exec
inside the Mattermost container and try to connect to the PostgreSQL container via the mentioned port. If it does not work, they are not in the same network.
@choitjddn0311 yes, you will have to migrate to Postgres pretty quickly. It’ll be a hard requirement as of Mattermost v11, IIRC