Skip to content

How to reference plugins in docker-compose? #123

Closed

Description

@shimizurei

I am testing out adminer and I cannot get it to run when I add the plugin line. According to the logs, I get an exit code 255.

Compose File

version: '3.7'
services:
    adminer:
        image: 'adminer:latest'
        restart: always
        ports:
            - '8080:8080'
        environment:
            - 'ADMINER_DESIGN=dracula'
            - 'ADMINER_PLUGINS=plugin dump-json dump-zip login-password-less'

    mysql_db:
        image: 'mariadb:10.7'
        command: '--default-authentication-plugin=mysql_native_password'
        restart: always
        environment:
            MYSQL_ROOT_PASSWORD: rootpassword

Activity

  1. methbkts commented on Jun 16, 2022

    @methbkts

    @shimizurei AFAIK you don't need to put plugin into ADMINER_PLUGINS env var
    also, you need to bind-mount login-password-less
    so your compose file should look like this

    services:
      adminer:
        image: 'adminer:latest'
          restart: always
          ports:
            - '8080:8080'
          volumes:
            - ./plugins/login-password-less.php:/var/www/html/plugins-enabled/login-password-less.php
          environment:
            - 'ADMINER_DESIGN=dracula'
            - 'ADMINER_PLUGINS=dump-json dump-zip'
  2. shimizurei commented on Jun 20, 2022

    @shimizurei
    Author

    Found the answer here.

    Compose file (adminer section) ultimately looks like this:

    services:
      adminer:
        image: 'adminer:latest'
          restart: always
          ports:
            - '8080:8080'
          volumes:
            - ./plugins/login-password-less.php:/var/www/html/plugins-enabled/login-password-less.php
          environment:
            - 'ADMINER_DESIGN=dracula'
            - 'ADMINER_PLUGINS=dump-json dump-zip' # #### REMOVE any plugins in a bind mount from the list
  3. Repository owner locked and limited conversation to collaborators on Jun 20, 2022
  4. converted this issue into a discussion #124 on Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions