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

Add PMA_USER_FILE to the environment variable [docker secrets] #372

Closed
DEL-TRONIK opened this issue Jun 19, 2022 · 2 comments
Closed

Add PMA_USER_FILE to the environment variable [docker secrets] #372

DEL-TRONIK opened this issue Jun 19, 2022 · 2 comments
Assignees

Comments

@DEL-TRONIK
Copy link

DEL-TRONIK commented Jun 19, 2022

I think it could be a good idea to integrate the variable PMA_USER_FILE to the environment variable ?

Because if I use the variable in my MariaDB container, I cannot use it in the phpMyAdmin container, So I have to modify the password in two different places or use a global variable instead of using secrets ..

it's possible ?

services:
  mariadb:
    build:
      context: .
    environment:
      MYSQL_DATABASE_FILE: /run/secrets/mariadb-database
      MYSQL_USER_FILE: /run/secrets/mariadb-user
      MYSQL_PASSWORD_FILE: /run/secrets/mariadb-password
      MYSQL_ROOT_PASSWORD_FILE: /run/secrets/mariadb-root-password
    secrets:
      - mariadb-database
      - mariadb-user
      - mariadb-password
      - mariadb-root-password
  phpmyadmin:
    build:
      context: .
    environment:
      PMA_HOST: mariadb
      PMA_USER: my_username
      PMA_PASSWORD_FILE: /run/secrets/mariadb-password
      MYSQL_ROOT_PASSWORD_FILE: /run/secrets/mariadb-root-password
    secrets:
      - mariadb-password
      - mariadb-root-password
@williamdes williamdes self-assigned this Jun 19, 2022
@williamdes
Copy link
Member

Hi @DEL-TRONIK
This looks like a good idea.

I think we can add:

  • PMA_USER
  • PMA_CONTROLUSER
  • PMA_CONTROLHOST

@williamdes
Copy link
Member

This will be live on the next phpMyAdmin version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants