Files
Pine a813a139dc feat: serverrun/serverdata 全服务栈(参考 PineSoundServer)
- serverrun/:start-all.sh 一键编排 + start-compute/start-emqx + envcopy/encrypt-certs
- 服务编排:core(Dockerfile+compose)、compute-engine(build.sh+compose)、mysql、redis、mqtt(EMQX)
- serverdata/:新增 compute-data/compute-logs/mysql-data/redis-data/emqx-data/emqx-log
- 全服务仅 loopback 暴露,算力引擎 :3000 经 core 代理
2026-08-24 01:00:52 +08:00

31 lines
804 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 主服务 coreserver-core / dispatcher)编排
# 统一对外生产服务 opc.pinesound.cn → core:8090(经网关,仅 loopback
services:
core:
build:
context: ../..
dockerfile: serverrun/Dockerfile
image: opc-core:latest
container_name: opc-core
restart: always
ports:
- "127.0.0.1:8090:8090"
environment:
- PINEAGENTS_DEMO_DATABASE_URL=mysql+asyncmy://opc:opc_pass@mysql:3306/opc?charset=utf8mb4
- REDIS_URL=redis://:redis_pass@redis:6379/0
- SESSION_SECRET=${SESSION_SECRET:?请设置 SESSION_SECRET}
- TZ=Asia/Shanghai
volumes:
- ../../serverdata:/app/serverdata
depends_on:
- redis
- mysql
networks:
- opc-network
networks:
opc-network:
name: opc-network
external: true