Customizing configuration file using docker-compose ΒΆ

You can use an external file to customize phpMyAdmin configuration and pass it using the volumes directive:

phpmyadmin:     image: phpmyadmin/phpmyadmin     container_name: phpmyadmin     environment:      - PMA_ARBITRARY=1     restart: always     ports:      - 8080:80     volumes:      - /sessions      - ~/docker/phpmyadmin/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php      - /custom/phpmyadmin/theme/:/www/themes/theme/ 

See also

Customizing configuration