「Etcd-adminer」:修訂間差異

出自Gea-Suan Lin's Wiki
跳至導覽 跳至搜尋
本頁面具有訪問限制。如果您看見此訊息,這代表您沒有訪問本頁面的權限。
行 4: 行 4:
== 安裝 ==
== 安裝 ==


 這邊的方式是用[[Docker]] Compose跑起來,先 設定<code>/srv/etcd-adminer.example.com/docker-compose.yml</code>, 這邊 對外開Port 8081使用:
 這邊的方式是用[[Docker]] Compose跑起來,先設定<code>/srv/etcd-adminer.example.com/docker-compose.yml</code>, 其中裡面可以看到 對外開Port 8081使用:


<syntaxhighlight lang="yaml">
<syntaxhighlight lang="yaml">

於 2023年10月24日 (二) 16:45 的修訂

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"

後續就是標準的Docker Compose操作了:

sudo docker compose up -d

相關連結

外部連結