34 lines
1.3 KiB
INI
34 lines
1.3 KiB
INI
[Unit]
|
|
Description=Sharingan core (arena :8080 + sharingan-serve :8081 in one container, one page cache)
|
|
Requires=sharingan-postgres.service
|
|
After=sharingan-postgres.service
|
|
|
|
[Container]
|
|
ContainerName=sharingan-core
|
|
Image=localhost/sharingan-core:prod
|
|
Pull=never
|
|
EnvironmentFile=/srv/sharingan/secrets/core.env
|
|
Environment=ROLE=core ASSETS_DIR=/models BLUEPRINT_FILE=sharingan-1.plcp SIZING=medium WARM=1
|
|
Environment=ARENA_OPEN_REGISTRATION=true ARENA_TRUST_PROXY=true ARENA_RATE_LIMIT_RPS=50 ARENA_RATE_LIMIT_BURST=100 ARENA_BOTS_PER_IP_PER_DAY=30 ARENA_RANKED_MIN_HANDS=20004
|
|
Environment=SHARINGAN_SEARCH_THREADS=16 SHARINGAN_SEARCH_CONCURRENCY=2
|
|
# public inference: any arena player token may call /v1/act (checked via the arena's /v1/me), 10 decisions/s each
|
|
Environment=SHARINGAN_ARENA_AUTH_URL=http://127.0.0.1:8080 SHARINGAN_PUBLIC_RPS=10 SHARINGAN_PUBLIC_BURST=20
|
|
# model: read-only, shared with every sandbox through the host page cache
|
|
Volume=/srv/sharingan/models:/models:ro
|
|
Volume=/srv/sharingan/arena-data:/data
|
|
Network=sharingan.network
|
|
PublishPort=127.0.0.1:8080:8080
|
|
PublishPort=127.0.0.1:8081:8081
|
|
HealthCmd=curl -fsS http://127.0.0.1:8080/readyz
|
|
HealthInterval=10s
|
|
HealthStartPeriod=120s
|
|
|
|
[Service]
|
|
Restart=always
|
|
RestartSec=5
|
|
TimeoutStartSec=900
|
|
TimeoutStopSec=60
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|