Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default values in docker-compose.yml #120

Open
Taronyuu opened this issue Mar 14, 2024 · 1 comment
Open

Set default values in docker-compose.yml #120

Taronyuu opened this issue Mar 14, 2024 · 1 comment
Labels
Bug: Needs Confirmation 🧐 Bugs that are reported, but needs to be confirmed and replicated.

Comments

@Taronyuu
Copy link

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 Taronyuu added the Bug: Needs Confirmation 🧐 Bugs that are reported, but needs to be confirmed and replicated. label Mar 14, 2024
@WhyAydan
Copy link

WhyAydan commented Apr 7, 2024

In your docker-compose did you specify the env_file?

Works perfect for me if i add the line

env_file:
      - .env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Needs Confirmation 🧐 Bugs that are reported, but needs to be confirmed and replicated.
Projects
None yet
Development

No branches or pull requests

2 participants