代码拉取完成,页面将自动刷新
version: "3"
services:
# PostgreSQL 数据库
db:
image: "postgres:13"
container_name: houge-db
networks:
- backend
environment:
POSTGRES_USER: "houge"
POSTGRES_PASSWORD: "123456"
# 数据库 schema 更新
db-migration:
image: kevin70/houge-db-migration
container_name: houge-db-migration
networks:
- backend
environment:
FLYWAY_URL: "jdbc:postgresql://db/houge"
FLYWAY_USER: "houge"
FLYWAY_PASSWORD: "123456"
entrypoint: sh
command: -c "wait-for db:5432 && flyway migrate"
depends_on:
- db
# 逻辑服务
logic:
image: kevin70/houge-server-logic
container_name: houge-server-logic
networks:
- backend
ports:
- 11012:11012
environment:
HOUGE_MESSAGE_STORAGE_R2DBC_URL: "r2dbc:postgresql://houge:123456@db/houge"
depends_on:
- db-migration
# REST 服务
rest:
image: kevin70/houge-server-rest
container_name: houge-server-rest
networks:
- backend
ports:
- 11019:11019
environment:
HOUGE_MESSAGE_STORAGE_R2DBC_URL: "r2dbc:postgresql://houge:123456@db/houge"
depends_on:
- db-migration
# WebSocket 服务
ws:
image: kevin70/houge-server-ws
container_name: houge-server-ws
networks:
- backend
ports:
- 11010:11010
environment:
HOUGE_LOGIC_SERVICE_GRPC_TARGET: "logic:11012"
HOUGE_AGENT_SERVICE_MULTI_GRPC_TARGET: "logic:11012"
networks:
backend:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。