Podman Quadlet 配置分享:AxonHub

AxonHub 是论坛佬友开源的 AI Gateway。 配置 # axonhub.pod [Pod] PublishPort=8090:8090 UserNS=keep-id [Install] WantedBy=default.target # axonhub.container [Unit] ...
Podman Quadlet 配置分享:AxonHub
Podman Quadlet 配置分享:AxonHub

AxonHub 是论坛佬友开源的 AI Gateway。

配置


# axonhub.pod

[Pod]

PublishPort=8090:8090

UserNS=keep-id

[Install]

WantedBy=default.target


# axonhub.container

[Unit]

Requires=axonhub-postgres.service

After=axonhub-postgres.service

[Container]

Image=docker.io/looplj/axonhub:latest

Pod=axonhub.pod

Volume=/path/to/data:/data

Environment=AXONHUB_DB_DIALECT=postgres AXONHUB_DB_DSN=postgres://axonhub:axonhub@127.0.0.1:5432/axonhub?sslmode=disable

AutoUpdate=registry

[Service]

Restart=always

[Install]

WantedBy=default.target


# axonhub-postgres.container

[Container]

Image=docker.io/library/postgres:16-alpine

Pod=axonhub.pod

Volume=/path/to/db:/var/lib/postgresql/data

Environment=POSTGRES_DB=axonhub POSTGRES_USER=axonhub POSTGRES_PASSWORD=axonhub

AutoUpdate=registry

[Service]

Restart=always

[Install]

WantedBy=default.target

  1. /path/to/ 替换为实际路径。

  2. 8090 替换为你想暴露的端口。

启动

  1. 保存文件到 ~/.config/containers/systemd/

  2. 运行 systemctl --user daemon-reload

  3. 启动:systemctl --user start axonhub-pod

  4. 【可选】启用自动更新:systemctl --user enable --now podman-auto-update.timer

2 个帖子 - 1 位参与者

阅读完整话题

来源: linux.do查看原文