Hardcoded database password?
mmance opened this issue · comments
Marc commented
I don't see an easy way to change it, if you deviate from "secret" then it errors out. Took me a while to realize that.
Marc commented
I have found two variables that monica picks up on for database. If you set these in your .env to your new values then profit.
DB_USERNAME
DB_PASSWORD
Alexis Saettler commented
You just have to change the environment variable.
-
change it directly when creating the docker instance:
docker run -d -p 8080:80 -e DB_PASSWORD=newpassword monica
(and use the same password on the mysql instance)
-
or change it in the docker-compose.yml file:
app: image: monica environment: - DB_PASSWORD=newpassword
-
or change it in the
.env
file that you use to run the instanceapp: image: monica env_file: .env
See examples files!