Basic settings and plugins for adminer
  • PHP 96.6%
  • CSS 2.9%
  • Shell 0.4%
Find a file
Pau Capó f0cf3d9e40
All checks were successful
Weekly Docker Image Build / build (push) Successful in 11m8s
process list screen enhancements
2026-03-02 19:47:19 +01:00
.forgejo/workflows add build workflow 2026-02-08 13:34:27 +01:00
adminer-plugins process list screen enhancements 2026-03-02 19:47:19 +01:00
assets prism code visualizer and json editor 2021-05-21 18:05:20 +02:00
.dockerignore adminer with docker support 2026-02-05 11:04:24 +01:00
.gitignore add security 2025-07-10 13:40:22 +02:00
adminer.css adminer prism fixes 2025-04-16 19:24:34 +02:00
adminer.php update adminer to 5.4.2 2026-02-13 10:47:05 +01:00
build.sh build remote images in remote server 2026-02-08 12:31:13 +01:00
docker-entrypoint.sh increase memory limit 2026-02-19 09:28:10 +01:00
Dockerfile fix entrypoint 2026-02-19 09:12:21 +01:00
index.php add security 2025-07-10 13:40:22 +02:00
README.md add UPLOAD_MAX_FILESIZE env variable (default to 2G) 2026-02-19 08:56:33 +01:00
update.sh update adminer and adapt plugins to new version 2025-04-06 20:00:30 +02:00

Adminer

Database management tool based on Adminer.

Supports MySQL, MariaDB, PostgreSQL, and SQLite.

Usage

Clone

git clone https://git.paucapo.com/server/adminer.git

Serve the directory with any PHP 8.4 web server and open index.php.

Docker

docker run -p 8080:80 git.paucapo.com/server/adminer

Then open http://localhost:8080.

Docker Compose

services:
  adminer:
    image: git.paucapo.com/server/adminer
    container_name: adminer
    restart: unless-stopped
    #network_mode: host
    ports:
      - 8080:80
    #environment:
    #  - UPLOAD_MAX_FILESIZE=2G
    volumes:
      - ./servers.php:/var/www/html/servers.php

Then open http://localhost:8080 (or http://localhost:80 if using network_mode: host).

Warning: When using network_mode: host, PHP's MySQL driver treats localhost as a Unix socket path, which fails inside the container. Add this to the end of servers.php to force TCP connections:

if (isset($_POST['auth']['server']) && ($_POST['auth']['server'] === 'localhost' || $_POST['auth']['server'] === '')) {
    $_POST['auth']['server'] = '127.0.0.1';
}
if (isset($_GET['server']) && ($_GET['server'] === 'localhost' || $_GET['server'] === '')) {
    $_GET['server'] = '127.0.0.1';
}

Environment variables

Variable Default Description
UPLOAD_MAX_FILESIZE 2G PHP upload_max_filesize and post_max_size
docker run -p 8080:80 -e UPLOAD_MAX_FILESIZE=512M git.paucapo.com/server/adminer

Server configuration

To restrict which database servers can be accessed, mount a servers.php file:

docker run -p 8080:80 -v ./servers.php:/var/www/html/servers.php git.paucapo.com/server/adminer

Example servers.php:

<?php
$allowed_servers = [
    'database',
    'localhost',
];

Build

./build.sh

Builds a multi-platform image (amd64, arm64) and pushes to the registry. Requires being logged in:

docker login https://git.paucapo.com/