You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
847 B
29 lines
847 B
# admin 服务部署(单服务)
|
|
#
|
|
# 只部署 yunyan-admin(Nuxt 管理前端)。它通过 CONSOLE_BACKEND 连接同网络的 console 服务。
|
|
# 依赖服务由目标环境共享提供,不在此 compose。
|
|
#
|
|
# 不直接 docker compose 调用,统一通过 deploy.sh。
|
|
|
|
services:
|
|
yunyan-admin:
|
|
image: ${REGISTRY:-docker-registry.ideapsound.com}/yunyan-admin:${TAG:-latest}
|
|
container_name: yunyan-admin
|
|
restart: unless-stopped
|
|
platform: ${PLATFORM:-linux/amd64}
|
|
|
|
networks:
|
|
- appnet
|
|
|
|
environment:
|
|
TZ: Asia/Shanghai
|
|
# server middleware 运行时代理目标(同网络容器名直接解析)
|
|
CONSOLE_BACKEND: ${CONSOLE_BACKEND:-http://yunyan-console:8080}
|
|
|
|
ports:
|
|
- "${ADMIN_PORT:-3000}:3000"
|
|
|
|
networks:
|
|
appnet:
|
|
name: ${DOCKER_NETWORK:-1panel-network}
|
|
external: true
|
|
|