financial-freedom icon indicating copy to clipboard operation
financial-freedom copied to clipboard

Set default values in docker-compose.yml

Open Taronyuu opened this issue 11 months ago • 1 comments

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

Taronyuu avatar Mar 14 '24 15:03 Taronyuu

In your docker-compose did you specify the env_file?

Works perfect for me if i add the line

env_file:
      - .env

WhyAydan avatar Apr 07 '24 10:04 WhyAydan