feat(performance-point): switch performance calculator to performance-server (#80)

* feat(config): make `performance_server` as default calculator

* deploy(docker): use osu-performance-server

* docs(readme): add ruleset download instructions

* chore(dev): update development environment

* feat(dev): update development environment setup and service startup order

* fix(deps): move `rosu-pp-py` to `project.optional-dependencies`

* feat(beatmap): handle deleted beatmaps

* feat(performance-server): add a long timeout for calculation

* feat(recalculate): enhance CLI arguments for performance, leaderboard, and rating recalculations with CSV output support

* fix(recalculate): resolve reviews

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix(beatmapsync): resolve too long line

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
MingxuanGame
2025-11-09 01:59:09 +08:00
committed by GitHub
parent 293e57aea3
commit 0be3e903d4
20 changed files with 942 additions and 264 deletions

View File

@@ -14,8 +14,7 @@ services:
- MYSQL_HOST=mysql
- MYSQL_PORT=3306
- REDIS_URL=redis://redis:6379
# - CALCULATOR=performance_server
# - CALCULATOR_CONFIG='{"server_url":"http://performance-server:8080"}'
- CALCULATOR_CONFIG='{"server_url":"http://performance-server:8080"}'
env_file:
- .env
depends_on:
@@ -23,6 +22,8 @@ services:
condition: service_healthy
redis:
condition: service_healthy
performance-server:
condition: service_healthy
volumes:
- ./replays:/app/replays
- ./storage:/app/storage
@@ -56,7 +57,7 @@ services:
- osu-network
spectator:
image: ghcr.io/googuteam/osu-server-spectator-custom-rulesets:master
image: ghcr.io/googuteam/osu-server-spectator:master
pull_policy: never
environment:
- REPLAY_UPLOAD_THREADS=${REPLAY_UPLOAD_THREADS:-1}
@@ -75,6 +76,8 @@ services:
- mysql
- redis
restart: unless-stopped
volumes:
- ./rulesets:/data/rulesets
networks:
- osu-network
@@ -104,14 +107,16 @@ services:
- osu-network
command: redis-server --appendonly yes
# performance-server:
# image: ghcr.io/googuteam/osu-performance-server:custom-rulesets
# container_name: performance_server
# environment:
# - SAVE_BEATMAP_FILES=false
# restart: unless-stopped
# networks:
# - osu-network
performance-server:
image: ghcr.io/googuteam/osu-performance-server:latest
container_name: performance_server
environment:
- SAVE_BEATMAP_FILES=false
volumes:
- ./rulesets:/data/rulesets
restart: unless-stopped
networks:
- osu-network
volumes:
mysql_data: