「Etcd-adminer」:修訂間差異
跳至導覽
跳至搜尋
创建页面,内容为“{{Lowercase}} '''etcd-adminer'''是一套etcd的網頁管理工具。 == 外部連結 == * {{Official|https://github.com/srimaln91/etcd-adminer}} {{en}} Category:軟體” |
|||
(未顯示同一使用者於中間所作的 10 次修訂) | |||
第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>,這邊是直接指定了[[etcd]]所有的機器,這邊的設定值可以參考config.go<ref>{{Cite web |url=https://github.com/srimaln91/etcd-adminer/blob/main/config/confg.go |title=etcd-adminer/config/confg.go at main · srimaln91/etcd-adminer |accessdate=2023-10-25}}</ref>的程式碼: | |||
<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> | |||
後續就是標準的Docker Compose操作了: | |||
<syntaxhighlight lang="bash"> | |||
sudo docker compose up -d | |||
</syntaxhighlight> | |||
== 注意事項 == | |||
etcd-adminer沒有登入機制,這邊可以搭配[[oauth2-proxy]]或是類似的工具綁定公司的SSO使用。 | |||
== 相關連結 == | |||
* [[etcd]] | |||
* [[oauth2-proxy]] | |||
== 參考資料 == | |||
{{Reflist|2}} | |||
== 外部連結 == | == 外部連結 == |
於 2023年10月24日 (二) 16:50 的最新修訂
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
,這邊是直接指定了etcd所有的機器,這邊的設定值可以參考config.go[1]的程式碼:
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
注意事項
etcd-adminer沒有登入機制,這邊可以搭配oauth2-proxy或是類似的工具綁定公司的SSO使用。
相關連結
參考資料
- ↑ etcd-adminer/config/confg.go at main · srimaln91/etcd-adminer. [2023-10-25].
外部連結
- 官方網站 (英文)