feat: all cpus reservations to 0.1

This commit is contained in:
Sun-ZhenXing
2026-05-14 16:22:07 +08:00
parent 453a3eab11
commit 53b841926e
274 changed files with 828 additions and 828 deletions
+23 -23
View File
@@ -1,23 +1,23 @@
# TrailBase configuration
# Pin to the latest stable image tag
TRAILBASE_VERSION=0.22.4
# Host port mapping (maps to container port 4000)
TRAILBASE_PORT_OVERRIDE=4000
# Enable detailed stack traces for debugging (set to 0 in production)
TRAILBASE_RUST_BACKTRACE=1
# Logging configuration for the json-file driver
TRAILBASE_LOG_MAX_SIZE=100m
TRAILBASE_LOG_MAX_FILE=3
# Timezone
TZ=UTC
# Resource limits
TRAILBASE_CPU_LIMIT=1.0
TRAILBASE_MEMORY_LIMIT=1G
TRAILBASE_CPU_RESERVATION=0.25
TRAILBASE_MEMORY_RESERVATION=256M
# TrailBase configuration
# Pin to the latest stable image tag
TRAILBASE_VERSION=0.22.4
# Host port mapping (maps to container port 4000)
TRAILBASE_PORT_OVERRIDE=4000
# Enable detailed stack traces for debugging (set to 0 in production)
TRAILBASE_RUST_BACKTRACE=1
# Logging configuration for the json-file driver
TRAILBASE_LOG_MAX_SIZE=100m
TRAILBASE_LOG_MAX_FILE=3
# Timezone
TZ=UTC
# Resource limits
TRAILBASE_CPU_LIMIT=1.0
TRAILBASE_MEMORY_LIMIT=1G
TRAILBASE_CPU_RESERVATION=0.1
TRAILBASE_MEMORY_RESERVATION=256M
+44 -44
View File
@@ -1,44 +1,44 @@
# TrailBase - Firebase alternative with type-safe REST & realtime APIs
# Project: https://github.com/trailbaseio/trailbase
# Default access: http://localhost:4000/_/admin
# Notes:
# - The container already ships the admin UI WASM component.
# - Initial admin credentials are printed to the logs on first boot.
# - Use `trail user add <email> <password>` to create additional verified users.
x-defaults: &defaults
restart: unless-stopped
logging:
driver: json-file
options:
max-size: ${TRAILBASE_LOG_MAX_SIZE:-100m}
max-file: '${TRAILBASE_LOG_MAX_FILE:-3}'
services:
trailbase:
<<: *defaults
image: ${GLOBAL_REGISTRY:-}trailbase/trailbase:${TRAILBASE_VERSION:-0.22.4}
ports:
- '${TRAILBASE_PORT_OVERRIDE:-4000}:4000'
environment:
- TZ=${TZ:-UTC}
- RUST_BACKTRACE=${TRAILBASE_RUST_BACKTRACE:-1}
volumes:
- trailbase_data:/app/traildepot
healthcheck:
test: [CMD, curl, --fail, --silent, --show-error, 'http://localhost:4000/api/healthcheck']
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
deploy:
resources:
limits:
cpus: ${TRAILBASE_CPU_LIMIT:-1.0}
memory: ${TRAILBASE_MEMORY_LIMIT:-1G}
reservations:
cpus: ${TRAILBASE_CPU_RESERVATION:-0.25}
memory: ${TRAILBASE_MEMORY_RESERVATION:-256M}
volumes:
trailbase_data:
# TrailBase - Firebase alternative with type-safe REST & realtime APIs
# Project: https://github.com/trailbaseio/trailbase
# Default access: http://localhost:4000/_/admin
# Notes:
# - The container already ships the admin UI WASM component.
# - Initial admin credentials are printed to the logs on first boot.
# - Use `trail user add <email> <password>` to create additional verified users.
x-defaults: &defaults
restart: unless-stopped
logging:
driver: json-file
options:
max-size: ${TRAILBASE_LOG_MAX_SIZE:-100m}
max-file: '${TRAILBASE_LOG_MAX_FILE:-3}'
services:
trailbase:
<<: *defaults
image: ${GLOBAL_REGISTRY:-}trailbase/trailbase:${TRAILBASE_VERSION:-0.22.4}
ports:
- '${TRAILBASE_PORT_OVERRIDE:-4000}:4000'
environment:
- TZ=${TZ:-UTC}
- RUST_BACKTRACE=${TRAILBASE_RUST_BACKTRACE:-1}
volumes:
- trailbase_data:/app/traildepot
healthcheck:
test: [CMD, curl, --fail, --silent, --show-error, 'http://localhost:4000/api/healthcheck']
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
deploy:
resources:
limits:
cpus: ${TRAILBASE_CPU_LIMIT:-1.0}
memory: ${TRAILBASE_MEMORY_LIMIT:-1G}
reservations:
cpus: ${TRAILBASE_CPU_RESERVATION:-0.1}
memory: ${TRAILBASE_MEMORY_RESERVATION:-256M}
volumes:
trailbase_data: