使用前提,拥有mgb抓取的PostgreSQL数据库
version: "3.8" # 明确 Compose 版本(推荐 3.8+)
services:
# 应用服务
app:
image: monsterfire/bm-connect-bgm.pg:latest
container_name: bm-connect-bmg.pg
environment:
# PostgreSQL 配置环境变量(PGHOST 填 postgres 容器名,需同网络)
PGHOST: <你的 PostgreSQL 数据库 IP 地址>
PGPORT: <你的 PostgreSQL 数据库端口>
PGUSER: <你的 PostgreSQL 数据库用户名>
PGPASSWORD: <你的 PostgreSQL 数据库密码>
PGDATABASE: <你的 PostgreSQL 数据库名称>
ports:
- "11122:11122"
restart: unless-stopped
- BT_URL=http://host.docker.internal:11122/bt/api
- BT_METHOD=GET
Content type
Image
Digest
sha256:59ae80c15…
Size
9.1 MB
Last updated
9 months ago
docker pull monsterfire/bm-connect-bgm.pg