Fix resources isues 30
This commit is contained in:
@@ -44,6 +44,33 @@ gitea:
|
||||
SSH_DOMAIN: gitea.bakewise.ai
|
||||
ROOT_URL: https://gitea.bakewise.ai
|
||||
|
||||
# =============================================================================
|
||||
# PACKAGE/REGISTRY RETENTION POLICY
|
||||
# =============================================================================
|
||||
# Automatic cleanup of old container images and packages
|
||||
# This prevents the registry from growing indefinitely
|
||||
packages:
|
||||
ENABLED: true
|
||||
# Limit container image versions to prevent storage bloat
|
||||
# 0 = unlimited (default), set a reasonable limit for CI/CD
|
||||
LIMIT_TOTAL_OWNER_SIZE: 10737418240 # 10GB per owner/organization
|
||||
LIMIT_SIZE_CONTAINER: 2147483648 # 2GB per container image
|
||||
|
||||
# Cron job for automatic package cleanup
|
||||
cron:
|
||||
ENABLED: true
|
||||
"cron.cleanup_packages":
|
||||
ENABLED: true
|
||||
# Run daily at 3 AM
|
||||
SCHEDULE: "0 3 * * *"
|
||||
# Keep packages newer than this (in hours) - 168h = 7 days
|
||||
OLDER_THAN: 168h
|
||||
# Number of versions to keep per package (0 = disabled)
|
||||
# This keeps the last 5 versions regardless of age
|
||||
NUMBER_TO_KEEP: 5
|
||||
# Also clean up unreferenced blobs
|
||||
REMOVE_UNUSED_ARTIFACTS: true
|
||||
|
||||
# Production resources - adjust based on expected load
|
||||
resources:
|
||||
limits:
|
||||
|
||||
Reference in New Issue
Block a user