financial-freedom
financial-freedom copied to clipboard
Set default values in docker-compose.yml
Issue description
When running docker compose up
on a clean pull the database container throws an error with missing env variables.
If this is something you would like I can create a PR with sane defaults :)
Environment
local / development
Steps to reproduce the issue
- git clone this repo
- run
docker compose up
What is expected?
Sane defaults so the container is able to startup.
Additional details / screenshots
financial-freedom-mariadb-1 | 2024-03-14 15:49:04+00:00 [ERROR] [Entrypoint]: Database is uninitialized and password option is not specified
financial-freedom-mariadb-1 | You need to specify one of MARIADB_ROOT_PASSWORD, MARIADB_ROOT_PASSWORD_HASH, MARIADB_ALLOW_EMPTY_ROOT_PASSWORD and MARIADB_RANDOM_ROOT_PASSWORD
financial-freedom-mariadb-1 exited with code 1
In your docker-compose did you specify the env_file?
Works perfect for me if i add the line
env_file:
- .env