How to reference plugins in docker-compose? #124
Answered
by
shimizurei
shimizurei
asked this question in
Q&A
-
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 Fileversion: '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 |
Beta Was this translation helpful? Give feedback.
Answered by
shimizurei
Jun 20, 2022
Replies: 2 comments
-
@shimizurei AFAIK you don't need to put 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' |
Beta Was this translation helpful? Give feedback.
0 replies
-
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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
TimWolla
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found the answer here.
Compose file (adminer section) ultimately looks like this: