Etcd-adminer:修订间差异

来自Gea-Suan Lin's Wiki
跳到导航 跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
第1行: 第1行:
{{Lowercase}}
{{Lowercase}}
'''etcd-adminer'''是一套[[etcd]]的網頁管理工具。
'''etcd-adminer'''是一套[[etcd]]的網頁管理工具。
== 安裝 ==
用[[Docker]] Compose跑起來,先把設定<code>/srv/etcd-adminer.example.com/docker-compose.yml</code>,這邊對外開Port 8081使用:
<syntaxhighlight lang="yaml">
version: '3.2'
services:
  etcd-adminer:
   image: srimaln91/etcd-adminer:latest
   container_name: etcd-adminer
   hostname: etcd-adminer
   ports:
    - 8081:8080
   restart: unless-stopped
   volumes:
    - /srv/etcd-adminer.example.com/config.yaml:/app/config.yaml
</syntaxhighlight>
接著設定<code>/srv/etcd-adminer.example.com/config.yaml</code>,這邊是直接指定了後面所有的機器:
<syntaxhighlight lang="yaml">
http:
  port: 8080
logger:
  level: "DEBUG"
etcd:
  - name: "example-etcd"
   endpoints:
    - "10.1.2.1:2379"
    - "10.1.2.2:2379"
    - "10.1.2.3:2379"
   superadmin:
    username: "root"
    password: "password"
</syntaxhighlight>


== 相關連結 ==
== 相關連結 ==

2023年10月24日 (二) 16:29的版本

etcd-adminer是一套etcd的网页管理工具。

安装

Docker Compose跑起来,先把设定/srv/etcd-adminer.example.com/docker-compose.yml,这边对外开Port 8081使用:

version: '3.2'
services:
  etcd-adminer:
    image: srimaln91/etcd-adminer:latest
    container_name: etcd-adminer
    hostname: etcd-adminer
    ports:
      - 8081:8080
    restart: unless-stopped
    volumes:
      - /srv/etcd-adminer.example.com/config.yaml:/app/config.yaml

接着设定/srv/etcd-adminer.example.com/config.yaml,这边是直接指定了后面所有的机器:

http:
  port: 8080
logger:
  level: "DEBUG"
etcd:
  - name: "example-etcd"
    endpoints:
      - "10.1.2.1:2379"
      - "10.1.2.2:2379"
      - "10.1.2.3:2379"
    superadmin:
      username: "root"
      password: "password"

相关连结

外部链接