serversideup / financial-freedom

🔥🔥🔥 An open source alternative to Mint, YNAB, and more. Stay on budget and build wealth without sacrificing your privacy.
https://serversideup.net/open-source/financial-freedom/
GNU General Public License v3.0
1.84k stars 143 forks source link

Set default values in docker-compose.yml #120

Open Taronyuu opened 6 months ago

Taronyuu commented 6 months ago

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

  1. git clone this repo
  2. 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
WhyAydan commented 5 months ago

In your docker-compose did you specify the env_file?

Works perfect for me if i add the line

env_file:
      - .env