Giter Site home page Giter Site logo

Comments (3)

qiaofeng1227 avatar qiaofeng1227 commented on May 18, 2024
[root@iZj6cegvt102afyesj92e8Z mattermost]# docker logs mattermost-db
2022-07-28 07:46:50.276 UTC [1] LOG:  starting PostgreSQL 13.7 on x86_64-pc-linux-musl, compiled by gcc (Alpine 11.2.1_git20220219) 11.2.1 20220219, 64-bit
2022-07-28 07:46:50.276 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2022-07-28 07:46:50.276 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2022-07-28 07:46:50.277 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2022-07-28 07:46:50.281 UTC [49] LOG:  database system was shut down at 2022-07-28 07:46:50 UTC
2022-07-28 07:46:50.285 UTC [1] LOG:  database system is ready to accept connections
2022-07-28 07:46:58.850 UTC [56] FATAL:  password authentication failed for user "postgres"
2022-07-28 07:46:58.850 UTC [56] DETAIL:  Password does not match for user "postgres".
	Connection matched pg_hba.conf line 99: "host all all all md5"

from websoft9.

qiaofeng1227 avatar qiaofeng1227 commented on May 18, 2024

.env 文件变量替换只到第二层,第三层是用变量不是用值来替换的。POWER_PASSWORD我们删除后就造成了连接失败

# mattermost/mattermost-team-edition, mattermost-enterprise-edition

APP_REPO=mattermost/mattermost-team-edition
APP_VERSION=latest
APP_PORT=9001
APP_NAME=mattermost
APP_URL_REPLACE=true
APP_URL=47.242.13.247
APP_NETWORK=websoft9

DB_POSTGRES_VERSION=13-alpine
DB_POSTGRES_PASSWORD=hGoe3d2FFAKST2!
DB_POSTGRES_DB=mattermost
DB_POSTGRES_USER=mattermost

# -- below from official .env

POSTGRES_USER=$APP_NAME
POSTGRES_PASSWORD=hGoe3d2FFAKST2!
POSTGRES_DB=$APP_NAME

MM_SERVICESETTINGS_SITEURL=http://47.242.13.247
MM_BLEVESETTINGS_INDEXDIR=/mattermost/bleve-indexes
MM_SQLSETTINGS_DRIVERNAME=postgres
MM_SQLSETTINGS_DATASOURCE=postgres://$APP_NAME:$POWER_PASSWORD@postgres:5432/$APP_NAME?sslmode=disable&connect_timeout=10

from websoft9.

qiaofeng1227 avatar qiaofeng1227 commented on May 18, 2024

修改.env以适用2层变量赋值

from websoft9.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.