All checks were successful
test/timeline-server/pipeline/head This commit looks good
1. 新增通知中心功能,支持好友请求、评论、点赞等多种通知类型的持久化与推送 2. 集成 RabbitMQ 用于异步处理动态日志,解耦动态服务与日志记录逻辑 3. 提供完整的 Docker Compose 部署方案及一键启动/停止脚本(Shell/Bat) 4. 优化文件服务,增加图片上传时的自动压缩处理以节省存储空间 5. 增强动态服务,支持通过 shareId 公开访问动态项及关键词搜索功能 6. 完善代码健壮性,在关键业务 Service 层增加 @Transactional 事务控制
101 lines
2.6 KiB
YAML
101 lines
2.6 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
mysql:
|
|
image: mysql:8.0.31
|
|
container_name: timeline-mysql
|
|
ports:
|
|
- "33306:33306"
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: WoCloud@9ol7uj
|
|
volumes:
|
|
- mysql_data:/var/lib/mysql
|
|
- mysql_log:/var/log/mysql
|
|
- ./conf/my-container.cnf:/etc/mysql/my.cnf
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
restart: always
|
|
healthcheck:
|
|
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
|
timeout: 20s
|
|
retries: 10
|
|
start_period: 40s
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: timeline-redis
|
|
ports:
|
|
- "36379:6379"
|
|
command: redis-server --requirepass 123456
|
|
volumes:
|
|
- redis_data:/data
|
|
- ./conf/redis-container.conf:/etc/redis/redis.conf
|
|
restart: always
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
timeout: 3s
|
|
retries: 5
|
|
start_period: 30s
|
|
|
|
minio:
|
|
image: minio/minio:RELEASE.2025-04-22T22-12-26Z
|
|
container_name: timeline-minio
|
|
ports:
|
|
- "9000:9000"
|
|
- "9090:9090"
|
|
environment:
|
|
MINIO_ROOT_USER: minioadmin
|
|
MINIO_ROOT_PASSWORD: WoCloud@9ol7uj
|
|
volumes:
|
|
- minio_data:/data
|
|
- ./conf/minio-config:/root/.minio
|
|
command: server /data --console-address ":9090" --address ":9000"
|
|
restart: always
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
interval: 30s
|
|
timeout: 20s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
nacos:
|
|
image: nacos/nacos-server:v2.3.0
|
|
container_name: nacos-server
|
|
environment:
|
|
- MODE=standalone
|
|
- SPRING_DATASOURCE_PLATFORM=mysql
|
|
- MYSQL_SERVICE_HOST=timeline-mysql # 修正:使用正确的容器名
|
|
- MYSQL_SERVICE_PORT=3306
|
|
- MYSQL_SERVICE_DB_NAME=nacos_config
|
|
- MYSQL_SERVICE_USER=root
|
|
- MYSQL_SERVICE_PASSWORD=WoCloud@9ol7uj
|
|
- NACOS_SERVER_IP=127.0.0.1
|
|
- PREFER_HOST_MODE=hostname
|
|
- JVM_XMS=512m
|
|
- JVM_XMX=512m
|
|
- JVM_XMN=256m
|
|
- SERVER_PORT=8848
|
|
volumes:
|
|
- ../nacos-config/application.properties:/home/nacos/conf/application.properties
|
|
- ../nacos-config/init.d:/home/nacos/init.d
|
|
- nacos_logs:/home/nacos/logs
|
|
- nacos_data:/home/nacos/data
|
|
ports:
|
|
- "8848:8848"
|
|
- "9848:9848"
|
|
restart: always
|
|
depends_on:
|
|
- mysql
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8848/nacos/v1/ns/operator/metrics"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
volumes:
|
|
mysql_data:
|
|
mysql_log:
|
|
redis_data:
|
|
minio_data:
|
|
nacos_logs:
|
|
nacos_data: |