Giter Site home page Giter Site logo

Comments (3)

bu3tt1 avatar bu3tt1 commented on May 23, 2024

Hello,

The mysql service variables are used during the creation of the container, it means that if the container has been created it is not possible to change mysql passwords (see https://hub.docker.com/_/mysql: "...Do note that none of the variables below will have any effect if you start the container with a data directory that already contains a database: any pre-existing database will always be left untouched on container startup.".

Passwordcokpit on the other hand must have configured PASSWORDCOCKPIT_DATABASE_USERNAME and PASSWORDCOCKPIT_DATABASE_PASSWORD that are configured in the mysql container.

I suggest you try, if mysql doesn't contain any data you can't delete, to destroy the mysql container and configure username and passwords before docker-compose up?

If you cannot destroy mysql container, you can enter in the mysql container and change password and then reconfigure PASSWORDCOCKPIT_DATABASE_USERNAME and PASSWORDCOCKPIT_DATABASE_PASSWORD.

from passwordcockpit.

ionics avatar ionics commented on May 23, 2024

Hello @bu3tt1 and thanks for your response.

INFO:
The thing is:

  • we did set ALL variables in docker-compose.yml BEFORE container-startup-command: docker-compose up -d.

So i still think there is a BUG in the setup process of the containers right?

QUESTION:
Changing DB credentials manually after container setup... we try right now.
Where are the credentials stored on the password cockpit side? This path => /var/www/html/config/autoload/db.local.php

<?php
return [
    'dbadapter' => [
        'username' => 'passwordcockpit_db_usr',
        'password' => 'password',
        'hostname' => 'mysql',
        'database' => 'passwordcockpit'
    ]
];

Is this the only path where one needs to adjust credentials username and password for DB connection?

Kind regards,
Raphael

from passwordcockpit.

bu3tt1 avatar bu3tt1 commented on May 23, 2024

Yes the path /var/www/html/config/autoload/db.local.php it's correct

from passwordcockpit.

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.