Comments (3)
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.
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.
Yes the path /var/www/html/config/autoload/db.local.php it's correct
from passwordcockpit.
Related Issues (20)
- The call to logs contains the query param passwordId HOT 2
- The auth token has a very short validity HOT 1
- Add apache Content-Security-Policy header
- Apache add STRICT_TRANSPORT_MAX_AGE=10886400
- Login failed with error (undefined) HOT 4
- Can´t upload attachments in zip format HOT 11
- Refused to load the script HOT 1
- Add Content-Security-Policy headers HOT 4
- Ldaps certificate information HOT 3
- Help for installation HOT 2
- Unexpected error while clicking on a password after idle activity
- LDAP Connection HOT 4
- Page is not loading through Docker Compose HOT 2
- Even the installation successed no view HOT 6
- Nog getting past the login page HOT 6
- Updated to PHP 8.2
- Updated Mezzio libraries
- Updated EmberJS 5.4 HOT 1
- error in startup HOT 4
- Add json and yaml to mimetypes.php
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from passwordcockpit.