fix: clean shit

在原始配置基础上重新应用限流功能,恢复丢失的路由和服务依赖。
This commit is contained in:
zetaloop
2026-04-06 11:15:43 +08:00
parent 35ce485e07
commit 063430b644
3 changed files with 112 additions and 647 deletions
+35 -17
View File
@@ -38,8 +38,6 @@ services:
rl-redis:
image: redis:${REDIS_VERSION:-8}
container_name: ${REDIS_CONTAINER_NAME:-rl-redis-dev-server}
profiles:
- infra
ports:
- "6380:6379"
restart: unless-stopped
@@ -86,42 +84,62 @@ services:
condition: service_started
envoy-gateway:
build:
context: ../deploy/dev/envoy
image: envoy-gateway:latest
container_name: ${ENVOY_GATEWAY_CONTAINER_NAME:-envoy-gateway-dev-server}
image: envoyproxy/envoy:v1.31-latest
container_name: juwan-envoy-gateway
restart: unless-stopped
command:
- /usr/local/bin/envoy
- -c
- /etc/envoy/envoy.yaml
- --log-level
- info
ports:
- "8080:8080"
- "9901:9901"
- "18080:8080"
volumes:
- ./envoy.yaml:/etc/envoy/envoy.yaml:ro
depends_on:
authz-adapter:
condition: service_started
required: false
user-api:
users-api:
condition: service_started
player-api:
condition: service_started
game-api:
condition: service_started
shop-api:
condition: service_started
order-api:
condition: service_started
wallet-api:
condition: service_started
community-api:
condition: service_started
objectstory-api:
condition: service_started
required: false
email-api:
condition: service_started
required: false
restart: unless-stopped
ratelimit:
image: ratelimit:latest
image: envoyproxy/ratelimit:05c08d03
container_name: rl-service
restart: unless-stopped
command: /bin/ratelimit
environment:
- REDIS_SOCKET_TYPE=tcp
- REDIS_URL=rl-redis:6379
- USE_STATSD=false
- RUNTIME_ROOT=/data
- RUNTIME_SUBDIRECTORY=ratelimit
- RUNTIME_WATCH_ROOT=true # 热重载
- RUNTIME_WATCH_ROOT=true
- LOG_LEVEL=debug
volumes:
- ./rls/ratelimit.yaml:/data/ratelimit/config/ratelimit.yaml:ro
ports:
- "8081:8081"
- "6070:6070"
- "18081:8081"
- "16070:6070"
depends_on:
rl-redis:
condition: service_started
# ==================== RPC 层 ====================
user-rpc: