flnxi-Wu/license-server/docker-compose.yml
WuYongJie ba98bf22cc feat: 添加许可证系统、Agent部署模块和Harbor镜像管理
- 新增许可证服务器 (license-server/)
- 新增 Agent 部署模块 (flnxi-agent/)
- 添加许可证验证和激活页面
- 添加 Harbor 镜像同步脚本
- 更新素材系统支持许可证验证
2025-12-15 21:19:46 +08:00

45 lines
1023 B
YAML

version: '3.8'
services:
license-server:
build: .
container_name: license-server
restart: unless-stopped
ports:
- "9527:3000"
environment:
- DATABASE_URL=postgresql://license:license_secret@postgres:5432/license_db
- JWT_SECRET=${JWT_SECRET:-license-server-jwt-secret}
- RSA_PRIVATE_KEY=${RSA_PRIVATE_KEY}
- NODE_ENV=production
depends_on:
postgres:
condition: service_healthy
networks:
- license-network
postgres:
image: postgres:16-alpine
container_name: license-postgres
restart: unless-stopped
environment:
- POSTGRES_USER=license
- POSTGRES_PASSWORD=license_secret
- POSTGRES_DB=license_db
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U license -d license_db"]
interval: 5s
timeout: 5s
retries: 5
networks:
- license-network
volumes:
postgres_data:
networks:
license-network:
driver: bridge