yarcode / yii2-app-yarcode

Yii2 application template for our projects
Other
26 stars 14 forks source link

Database password not match #20

Closed MixMe closed 6 years ago

MixMe commented 6 years ago

Command: docker-compose run --rm yii migrate Error: Exception 'yii\db\Exception' with message 'SQLSTATE[08006] [7] FATAL: password authentication failed for user "yiidock"'

MixMe commented 6 years ago

nothing changed: cp .env.example .env

MixMe commented 6 years ago

In yii2-app-yarcode/docker-compose.yml you have:

environment: POSTGRES_USER: "${DB_USERNAME}" POSTGRES_PASSWORD: "${DB_USERNAME}"

maybe must be:

  POSTGRES_USER: "${DB_USERNAME}"
  POSTGRES_PASSWORD:  "${DB_PASSWORD}"

POSTGRES_PASSWORD = "${DB_PASSWORD}" not "${DB_USERNAME}"

metalagman commented 6 years ago

thank you for you help fixed it here https://github.com/yarcode/yii2-app-yarcode/releases/tag/1.7.2