Files
deploy.stack/adminer
cnphpbb 95e17779e8 chore: 更新镜像版本并移除敏感 env.cfg
- adminer 5.4.2 -> 6.0.1-fastcgi
- joplin 3.6.1 -> 3.7.2
- n8n 2.3.6/2.4.4 -> 2.39.4/2.4.4
- traefik v3.5.1 -> v3.7.13
- victoriametrics v1.126.0 -> v1.151.0
- postgres 16.15/18.6
- redis/valkey 镜像变量重命名并更新版本
- 删除误提交的 env.cfg 敏感文件
2026-09-12 17:07:11 +08:00
..

Adminer 部署说明

Adminer 是一个轻量级的数据库管理工具,支持 MySQL、PostgreSQL、SQLite、MS SQL、Oracle 等多种数据库,单文件 PHP 应用,适合日常数据库运维操作。

目录结构

文件 说明
stack.yml Docker Compose 部署配置
env.cfg 环境变量(镜像版本)

部署命令

# 拉取镜像
docker compose -p adminer --env-file ./adminer/env.cfg -f ./adminer/stack.yml pull

# 启动服务
docker compose -p adminer --env-file ./adminer/env.cfg -f ./adminer/stack.yml up -d

# 停止服务
docker compose -p adminer --env-file ./adminer/env.cfg -f ./adminer/stack.yml down

环境变量说明

变量 说明 示例
IMAGE_TAG_VER Adminer 镜像版本 5.4.2
IMAGE_TAG 完整镜像标签 adminer:5.4.2
Volumes_Path 数据卷宿主机路径 /data/volumes/adminer

访问服务

  • 默认端口:8080
  • 访问地址:http://<主机IP>:8080

注意事项

  • Adminer 本身无持久化数据,容器重建不影响使用
  • 连接数据库时使用数据库容器的服务名或内网 IP,而非 localhost
  • 建议仅在内部网络使用,不要直接暴露到公网