Skip to content

[Bug]: docker-entrypoint.sh not accept all settings #918

@vincenzomartusciello

Description

@vincenzomartusciello

Describe the problem

I'm using Docker Compose to deploy PowerAdmin. While useful, the configuration via env doesn't accept all possible settings from settings.php.

  1. Special case: Authentik oidc cannot be set from env, only from settings.php.
  2. If I want to mount a settings.php and simultaneously use Postegres as a database, I need to enter the Postegres credentials on both the env and settings sides.
    If I don't enter the Postegres credentials via env but only via settings, and I want to create a default user, it will be created in sqlite.

Removing the default user configuration via Docker or adding all the settings solves this problem.

Suggestion: Create an initial setup interface to create a default (skippable) user account on first boot.
This way, it's not necessary to initialize the database to create the user in the Docker entrypoint.

Steps to reproduce

Use Docker Compose to deploy not configuring the database in env but only the admin.
Configure postegresql database via settings.php.

Poweradmin version

4.0.4

Database

PostgreSQL

Additional information (optional)

No response

Metadata

Metadata

Assignees

Labels

authAuthenticationinfraPerformance & Infrastructure

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions