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

@@ -3,10 +3,10 @@ version: '3.8'
services:
app:
# or use
# image: mingxuangame/g0v0-server:osurx
# image: mingxuangame/g0v0-server:latest
build:
context: .
dockerfile: Dockerfile-osurx
dockerfile: Dockerfile
container_name: osu_api_server_osurx
environment:
- MYSQL_HOST=mysql
@@ -17,8 +17,7 @@ services:
- ENABLE_ALL_MODS_PP=true
- ENABLE_SUPPORTER_FOR_ALL_USERS=true
- ENABLE_ALL_BEATMAP_LEADERBOARD=true
# - CALCULATOR=performance_server
# - CALCULATOR_CONFIG='{"server_url":"http://performance-server:8080"}'
- CALCULATOR_CONFIG='{"server_url":"http://performance-server:8080"}'
env_file:
- .env
depends_on:
@@ -79,7 +78,7 @@ services:
command: redis-server --appendonly yes
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}
@@ -98,6 +97,8 @@ services:
- mysql
- redis
restart: unless-stopped
volumes:
- ./rulesets:/data/rulesets
networks:
- osu-network
@@ -111,14 +112,16 @@ services:
networks:
- osu-network
# performance-server:
# image: ghcr.io/googuteam/osu-performance-server-osurx:custom-rulesets
# container_name: performance_server_osurx
# environment:
# - SAVE_BEATMAP_FILES=false
# restart: unless-stopped
# networks:
# - osu-network
performance-server:
image: ghcr.io/googuteam/osu-performance-server-osurx
container_name: performance_server_osurx
environment:
- SAVE_BEATMAP_FILES=false
restart: unless-stopped
networks:
- osu-network
volumes:
- ./rulesets:/data/rulesets
volumes:
mysql_data: