Files
deploy.stack/adminer/readme.md
cnphpbb 635496683c feat: add adminer docker deployment files
add env.cfg configuration, stack.yml compose file and readme documentation for adminer deployment
2026-05-17 01:05:22 +08:00

1.3 KiB
Raw Permalink Blame History

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
  • 建议仅在内部网络使用,不要直接暴露到公网