chore: update format

This commit is contained in:
Sun-ZhenXing
2025-11-10 19:55:44 +08:00
parent febd1601a2
commit 42aa5c40d6
92 changed files with 660 additions and 613 deletions

View File

@@ -0,0 +1,6 @@
# https://github.com/NexaAI/nexa-sdk/issues/684
FROM ubuntu:24.04
#FROM nvidia/cuda:12.4.1-base-ubuntu22.04
RUN apt update && apt install -y libgomp1 curl ffmpeg sox
RUN curl -fsSL https://github.com/NexaAI/nexa-sdk/releases/latest/download/nexa-cli_linux_x86_64.sh | sh

View File

@@ -27,11 +27,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.00' cpus: ${APACHE_CPU_LIMIT:-1.00}
memory: 512M memory: ${APACHE_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${APACHE_CPU_RESERVATION:-0.25}
memory: 128M memory: ${APACHE_MEMORY_RESERVATION:-128M}
healthcheck: healthcheck:
test: ["CMD", "httpd", "-t"] test: ["CMD", "httpd", "-t"]
interval: 30s interval: 30s

View File

@@ -29,11 +29,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${APISIX_CPU_LIMIT:-1.0}
memory: 1G memory: ${APISIX_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${APISIX_CPU_RESERVATION:-0.25}
memory: 256M memory: ${APISIX_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:9080/apisix/status || exit 1"] test: ["CMD-SHELL", "curl -f http://localhost:9080/apisix/status || exit 1"]
interval: 30s interval: 30s
@@ -83,11 +83,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.5' cpus: ${ETCD_CPU_LIMIT:-0.5}
memory: 512M memory: ${ETCD_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.1' cpus: ${ETCD_CPU_RESERVATION:-0.1}
memory: 128M memory: ${ETCD_MEMORY_RESERVATION:-128M}
healthcheck: healthcheck:
test: ["CMD", "etcdctl", "endpoint", "health"] test: ["CMD", "etcdctl", "endpoint", "health"]
interval: 30s interval: 30s
@@ -115,11 +115,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.5' cpus: ${APISIX_DASHBOARD_CPU_LIMIT:-0.5}
memory: 512M memory: ${APISIX_DASHBOARD_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.1' cpus: ${APISIX_DASHBOARD_CPU_RESERVATION:-0.1}
memory: 128M memory: ${APISIX_DASHBOARD_MEMORY_RESERVATION:-128M}
volumes: volumes:
apisix_logs: apisix_logs:

View File

@@ -19,11 +19,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.50' cpus: ${BIFROST_CPU_LIMIT:-0.50}
memory: 512M memory: ${BIFROST_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.10' cpus: ${BIFROST_CPU_RESERVATION:-0.10}
memory: 128M memory: ${BIFROST_MEMORY_RESERVATION:-128M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"]
interval: 30s interval: 30s

View File

@@ -19,11 +19,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.00' cpus: ${BOLT_DIY_CPU_LIMIT:-2.00}
memory: 2G memory: ${BOLT_DIY_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.5' cpus: ${BOLT_DIY_CPU_RESERVATION:-0.5}
memory: 512M memory: ${BOLT_DIY_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5173/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5173/"]
interval: 30s interval: 30s

View File

@@ -18,11 +18,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${BYTEBOT_DESKTOP_CPU_LIMIT:-2.0}
memory: 4G memory: ${BYTEBOT_DESKTOP_MEMORY_LIMIT:-4G}
reservations: reservations:
cpus: '1.0' cpus: ${BYTEBOT_DESKTOP_CPU_RESERVATION:-1.0}
memory: 2G memory: ${BYTEBOT_DESKTOP_MEMORY_RESERVATION:-2G}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9990/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9990/"]
interval: 30s interval: 30s
@@ -50,11 +50,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${BYTEBOT_AGENT_CPU_LIMIT:-1.0}
memory: 1G memory: ${BYTEBOT_AGENT_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.5' cpus: ${BYTEBOT_AGENT_CPU_RESERVATION:-0.5}
memory: 512M memory: ${BYTEBOT_AGENT_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9991/health"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9991/health"]
interval: 30s interval: 30s
@@ -77,11 +77,17 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.5' cpus: ${BYTEBOT_UI_CPU_LIMIT:-0.5}
memory: 512M memory: ${BYTEBOT_UI_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${BYTEBOT_UI_CPU_RESERVATION:-0.25}
memory: 256M memory: ${BYTEBOT_UI_MEMORY_RESERVATION:-256M}
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9992/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
bytebot-db: bytebot-db:
<<: *defaults <<: *defaults
@@ -97,11 +103,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.5' cpus: ${BYTEBOT_DB_CPU_LIMIT:-0.5}
memory: 512M memory: ${BYTEBOT_DB_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${BYTEBOT_DB_CPU_RESERVATION:-0.25}
memory: 256M memory: ${BYTEBOT_DB_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"] test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 30s interval: 30s

View File

@@ -33,11 +33,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.00' cpus: ${CASSANDRA_CPU_LIMIT:-2.00}
memory: 2G memory: ${CASSANDRA_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.50' cpus: ${CASSANDRA_CPU_RESERVATION:-0.50}
memory: 1G memory: ${CASSANDRA_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD-SHELL", "cqlsh -e 'DESCRIBE CLUSTER'"] test: ["CMD-SHELL", "cqlsh -e 'DESCRIBE CLUSTER'"]
interval: 30s interval: 30s

View File

@@ -20,11 +20,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: "0.5" cpus: ${CLASH_CPU_LIMIT:-0.5}
memory: 512M memory: ${CLASH_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: "0.25" cpus: ${CLASH_CPU_RESERVATION:-0.25}
memory: 256M memory: ${CLASH_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80/"]
interval: 30s interval: 30s

View File

@@ -35,11 +35,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '4.0' cpus: ${CLICKHOUSE_CPU_LIMIT:-4.0}
memory: 4G memory: ${CLICKHOUSE_MEMORY_LIMIT:-4G}
reservations: reservations:
cpus: '1.0' cpus: ${CLICKHOUSE_CPU_RESERVATION:-1.0}
memory: 1G memory: ${CLICKHOUSE_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit 1"] test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit 1"]
interval: 30s interval: 30s

View File

@@ -38,11 +38,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.00' cpus: ${CONSUL_CPU_LIMIT:-1.00}
memory: 512M memory: ${CONSUL_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${CONSUL_CPU_RESERVATION:-0.25}
memory: 128M memory: ${CONSUL_MEMORY_RESERVATION:-128M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "consul members"] test: ["CMD-SHELL", "consul members"]
interval: 30s interval: 30s

View File

@@ -34,11 +34,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${DIFY_API_CPU_LIMIT:-1.0}
memory: 2G memory: ${DIFY_API_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.5' cpus: ${DIFY_API_CPU_RESERVATION:-0.5}
memory: 1G memory: ${DIFY_API_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5001/health"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5001/health"]
interval: 30s interval: 30s
@@ -73,11 +73,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${DIFY_WORKER_CPU_LIMIT:-1.0}
memory: 2G memory: ${DIFY_WORKER_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.5' cpus: ${DIFY_WORKER_CPU_RESERVATION:-0.5}
memory: 1G memory: ${DIFY_WORKER_MEMORY_RESERVATION:-1G}
dify-web: dify-web:
<<: *defaults <<: *defaults
@@ -94,11 +94,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.5' cpus: ${DIFY_WEB_CPU_LIMIT:-0.5}
memory: 512M memory: ${DIFY_WEB_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${DIFY_WEB_CPU_RESERVATION:-0.25}
memory: 256M memory: ${DIFY_WEB_MEMORY_RESERVATION:-256M}
dify-db: dify-db:
<<: *defaults <<: *defaults
@@ -114,11 +114,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.5' cpus: ${DIFY_DB_CPU_LIMIT:-0.5}
memory: 512M memory: ${DIFY_DB_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${DIFY_DB_CPU_RESERVATION:-0.25}
memory: 256M memory: ${DIFY_DB_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"] test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 30s interval: 30s
@@ -137,11 +137,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.25' cpus: ${DIFY_REDIS_CPU_LIMIT:-0.25}
memory: 256M memory: ${DIFY_REDIS_MEMORY_LIMIT:-256M}
reservations: reservations:
cpus: '0.1' cpus: ${DIFY_REDIS_CPU_RESERVATION:-0.1}
memory: 128M memory: ${DIFY_REDIS_MEMORY_RESERVATION:-128M}
healthcheck: healthcheck:
test: ["CMD", "redis-cli", "ping"] test: ["CMD", "redis-cli", "ping"]
interval: 10s interval: 10s
@@ -166,11 +166,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.5' cpus: ${DIFY_WEAVIATE_CPU_LIMIT:-0.5}
memory: 1G memory: ${DIFY_WEAVIATE_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${DIFY_WEAVIATE_CPU_RESERVATION:-0.25}
memory: 512M memory: ${DIFY_WEAVIATE_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/v1/.well-known/ready"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/v1/.well-known/ready"]
interval: 30s interval: 30s

View File

@@ -31,8 +31,8 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.50' cpus: ${DNSMASQ_CPU_LIMIT:-0.50}
memory: 128M memory: ${DNSMASQ_MEMORY_LIMIT:-128M}
reservations: reservations:
cpus: '0.10' cpus: ${DNSMASQ_CPU_RESERVATION:-0.10}
memory: 32M memory: ${DNSMASQ_MEMORY_RESERVATION:-32M}

View File

@@ -27,11 +27,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${REGISTRY_CPU_LIMIT:-1.0}
memory: 1G memory: ${REGISTRY_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.1' cpus: ${REGISTRY_CPU_RESERVATION:-0.1}
memory: 128M memory: ${REGISTRY_MEMORY_RESERVATION:-128M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5000/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5000/"]
interval: 30s interval: 30s

View File

@@ -24,11 +24,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${DOCKGE_CPU_LIMIT:-1.0}
memory: 512M memory: ${DOCKGE_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${DOCKGE_CPU_RESERVATION:-0.25}
memory: 256M memory: ${DOCKGE_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5001/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5001/"]
interval: 30s interval: 30s

View File

@@ -22,11 +22,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${DUCKDB_CPU_LIMIT:-2.0}
memory: 4G memory: ${DUCKDB_MEMORY_LIMIT:-4G}
reservations: reservations:
cpus: '0.5' cpus: ${DUCKDB_CPU_RESERVATION:-0.5}
memory: 512M memory: ${DUCKDB_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "duckdb /data/duckdb.db -c 'SELECT 1' || exit 1"] test: ["CMD-SHELL", "duckdb /data/duckdb.db -c 'SELECT 1' || exit 1"]
interval: 30s interval: 30s

View File

@@ -23,11 +23,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${EASY_DATASET_CPU_LIMIT:-2.0}
memory: 4G memory: ${EASY_DATASET_MEMORY_LIMIT:-4G}
reservations: reservations:
cpus: '0.5' cpus: ${EASY_DATASET_CPU_RESERVATION:-0.5}
memory: 1G memory: ${EASY_DATASET_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:1717"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:1717"]
interval: 30s interval: 30s

View File

@@ -36,11 +36,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.00' cpus: ${ELASTICSEARCH_CPU_LIMIT:-2.00}
memory: 2G memory: ${ELASTICSEARCH_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.50' cpus: ${ELASTICSEARCH_CPU_RESERVATION:-0.50}
memory: 1G memory: ${ELASTICSEARCH_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:9200/_cluster/health || exit 1"] test: ["CMD-SHELL", "curl -f http://localhost:9200/_cluster/health || exit 1"]
interval: 30s interval: 30s

View File

@@ -50,11 +50,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${ETCD_CPU_LIMIT:-1.0}
memory: 1G memory: ${ETCD_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${ETCD_CPU_RESERVATION:-0.25}
memory: 256M memory: ${ETCD_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD", "etcdctl", "endpoint", "health"] test: ["CMD", "etcdctl", "endpoint", "health"]
interval: 30s interval: 30s

View File

@@ -49,11 +49,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: "1.0" cpus: ${PLAYWRIGHT_CPU_LIMIT:-1.0}
memory: 1G memory: ${PLAYWRIGHT_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: "0.5" cpus: ${PLAYWRIGHT_CPU_RESERVATION:-0.5}
memory: 512M memory: ${PLAYWRIGHT_MEMORY_RESERVATION:-512M}
api: api:
<<: *defaults <<: *defaults
@@ -78,11 +78,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: "2.0" cpus: ${FIRECRAWL_API_CPU_LIMIT:-2.0}
memory: 4G memory: ${FIRECRAWL_API_MEMORY_LIMIT:-4G}
reservations: reservations:
cpus: "1.0" cpus: ${FIRECRAWL_API_CPU_RESERVATION:-1.0}
memory: 2G memory: ${FIRECRAWL_API_MEMORY_RESERVATION:-2G}
healthcheck: healthcheck:
test: test:
[ [
@@ -107,11 +107,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: "0.5" cpus: ${REDIS_CPU_LIMIT:-0.5}
memory: 512M memory: ${REDIS_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: "0.25" cpus: ${REDIS_CPU_RESERVATION:-0.25}
memory: 256M memory: ${REDIS_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD", "redis-cli", "ping"] test: ["CMD", "redis-cli", "ping"]
interval: 10s interval: 10s
@@ -133,11 +133,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: "1.0" cpus: ${NUQPOSTGRES_CPU_LIMIT:-1.0}
memory: 1G memory: ${NUQPOSTGRES_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: "0.5" cpus: ${NUQPOSTGRES_CPU_RESERVATION:-0.5}
memory: 512M memory: ${NUQPOSTGRES_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"] test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"]
interval: 10s interval: 10s

View File

@@ -29,11 +29,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${FLINK_JOBMANAGER_CPU_LIMIT:-2.0}
memory: 2G memory: ${FLINK_JOBMANAGER_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.5' cpus: ${FLINK_JOBMANAGER_CPU_RESERVATION:-0.5}
memory: 1G memory: ${FLINK_JOBMANAGER_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8081 || exit 1"] test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8081 || exit 1"]
interval: 30s interval: 30s
@@ -62,11 +62,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${FLINK_TASKMANAGER_CPU_LIMIT:-2.0}
memory: 2G memory: ${FLINK_TASKMANAGER_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.5' cpus: ${FLINK_TASKMANAGER_CPU_RESERVATION:-0.5}
memory: 1G memory: ${FLINK_TASKMANAGER_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD-SHELL", "ps aux | grep -v grep | grep -q taskmanager || exit 1"] test: ["CMD-SHELL", "ps aux | grep -v grep | grep -q taskmanager || exit 1"]
interval: 30s interval: 30s

View File

@@ -20,8 +20,8 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.5' cpus: ${FRPC_CPU_LIMIT:-0.5}
memory: 128M memory: ${FRPC_MEMORY_LIMIT:-128M}
reservations: reservations:
cpus: '0.1' cpus: ${FRPC_CPU_RESERVATION:-0.1}
memory: 64M memory: ${FRPC_MEMORY_RESERVATION:-64M}

View File

@@ -25,11 +25,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.5' cpus: ${FRPS_CPU_LIMIT:-0.5}
memory: 128M memory: ${FRPS_MEMORY_LIMIT:-128M}
reservations: reservations:
cpus: '0.1' cpus: ${FRPS_CPU_RESERVATION:-0.1}
memory: 64M memory: ${FRPS_MEMORY_RESERVATION:-64M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:${FRP_ADMIN_PORT:-7890}/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:${FRP_ADMIN_PORT:-7890}/"]
interval: 30s interval: 30s

View File

@@ -24,11 +24,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${GITEA_RUNNER_CPU_LIMIT:-1.0}
memory: 2G memory: ${GITEA_RUNNER_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.5' cpus: ${GITEA_RUNNER_CPU_RESERVATION:-0.5}
memory: 1G memory: ${GITEA_RUNNER_MEMORY_RESERVATION:-1G}
volumes: volumes:
gitea_runner_data: gitea_runner_data:

View File

@@ -30,11 +30,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${GITEA_CPU_LIMIT:-1.0}
memory: 1G memory: ${GITEA_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.5' cpus: ${GITEA_CPU_RESERVATION:-0.5}
memory: 512M memory: ${GITEA_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"]
interval: 30s interval: 30s
@@ -55,11 +55,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${GITEA_DB_CPU_LIMIT:-1.0}
memory: 1G memory: ${GITEA_DB_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.5' cpus: ${GITEA_DB_CPU_RESERVATION:-0.5}
memory: 512M memory: ${GITEA_DB_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"] test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 30s interval: 30s

View File

@@ -18,8 +18,8 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${GITLAB_RUNNER_CPU_LIMIT:-1.0}
memory: 2G memory: ${GITLAB_RUNNER_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.5' cpus: ${GITLAB_RUNNER_CPU_RESERVATION:-0.5}
memory: 1G memory: ${GITLAB_RUNNER_MEMORY_RESERVATION:-1G}

View File

@@ -24,11 +24,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${GITLAB_CPU_LIMIT:-2.0}
memory: 8G memory: ${GITLAB_MEMORY_LIMIT:-8G}
reservations: reservations:
cpus: '1.0' cpus: ${GITLAB_CPU_RESERVATION:-1.0}
memory: 4G memory: ${GITLAB_MEMORY_RESERVATION:-4G}
healthcheck: healthcheck:
test: ["CMD", "/opt/gitlab/bin/gitlab-healthcheck", "--fail"] test: ["CMD", "/opt/gitlab/bin/gitlab-healthcheck", "--fail"]
interval: 60s interval: 60s

View File

@@ -26,11 +26,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '8.0' cpus: ${GPUSTACK_CPU_LIMIT:-8.0}
memory: 8G memory: ${GPUSTACK_MEMORY_LIMIT:-8G}
reservations: reservations:
cpus: '2.0' cpus: ${GPUSTACK_CPU_RESERVATION:-2.0}
memory: 4G memory: ${GPUSTACK_MEMORY_RESERVATION:-4G}
devices: devices:
- driver: nvidia - driver: nvidia
device_ids: [ '0' ] device_ids: [ '0' ]

View File

@@ -31,11 +31,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${GRAFANA_CPU_LIMIT:-1.0}
memory: 1G memory: ${GRAFANA_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${GRAFANA_CPU_RESERVATION:-0.25}
memory: 256M memory: ${GRAFANA_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"]
interval: 30s interval: 30s

View File

@@ -29,11 +29,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${HALO_CPU_LIMIT:-2.0}
memory: 2G memory: ${HALO_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.5' cpus: ${HALO_CPU_RESERVATION:-0.5}
memory: 512M memory: ${HALO_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8090/actuator/health"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8090/actuator/health"]
interval: 30s interval: 30s
@@ -61,11 +61,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${HALO_DB_CPU_LIMIT:-1.0}
memory: 1G memory: ${HALO_DB_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${HALO_DB_CPU_RESERVATION:-0.25}
memory: 256M memory: ${HALO_DB_MEMORY_RESERVATION:-256M}
volumes: volumes:
halo_data: halo_data:

View File

@@ -38,6 +38,14 @@ services:
- REGISTRY_STORAGE_PROVIDER_NAME=filesystem - REGISTRY_STORAGE_PROVIDER_NAME=filesystem
- READ_ONLY=false - READ_ONLY=false
- RELOAD_KEY=${HARBOR_RELOAD_KEY:-} - RELOAD_KEY=${HARBOR_RELOAD_KEY:-}
deploy:
resources:
limits:
cpus: ${HARBOR_CORE_CPU_LIMIT:-2.0}
memory: ${HARBOR_CORE_MEMORY_LIMIT:-2G}
reservations:
cpus: ${HARBOR_CORE_CPU_RESERVATION:-0.5}
memory: ${HARBOR_CORE_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/api/v2.0/ping"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/api/v2.0/ping"]
interval: 30s interval: 30s
@@ -67,6 +75,14 @@ services:
- POSTGRESQL_USERNAME=postgres - POSTGRESQL_USERNAME=postgres
- POSTGRESQL_PASSWORD=${HARBOR_DB_PASSWORD:-password} - POSTGRESQL_PASSWORD=${HARBOR_DB_PASSWORD:-password}
- POSTGRESQL_DATABASE=registry - POSTGRESQL_DATABASE=registry
deploy:
resources:
limits:
cpus: ${HARBOR_JOBSERVICE_CPU_LIMIT:-1.0}
memory: ${HARBOR_JOBSERVICE_MEMORY_LIMIT:-1G}
reservations:
cpus: ${HARBOR_JOBSERVICE_CPU_RESERVATION:-0.25}
memory: ${HARBOR_JOBSERVICE_MEMORY_RESERVATION:-512M}
# Harbor Registry # Harbor Registry
harbor-registry: harbor-registry:
@@ -77,6 +93,14 @@ services:
environment: environment:
- TZ=${TZ:-UTC} - TZ=${TZ:-UTC}
- REGISTRY_HTTP_SECRET=${HARBOR_REGISTRY_SECRET:-} - REGISTRY_HTTP_SECRET=${HARBOR_REGISTRY_SECRET:-}
deploy:
resources:
limits:
cpus: ${HARBOR_REGISTRY_CPU_LIMIT:-1.0}
memory: ${HARBOR_REGISTRY_MEMORY_LIMIT:-1G}
reservations:
cpus: ${HARBOR_REGISTRY_CPU_RESERVATION:-0.25}
memory: ${HARBOR_REGISTRY_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5000/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5000/"]
interval: 30s interval: 30s
@@ -90,6 +114,14 @@ services:
image: ${GLOBAL_REGISTRY:-}goharbor/harbor-portal:${HARBOR_VERSION:-v2.12.0} image: ${GLOBAL_REGISTRY:-}goharbor/harbor-portal:${HARBOR_VERSION:-v2.12.0}
environment: environment:
- TZ=${TZ:-UTC} - TZ=${TZ:-UTC}
deploy:
resources:
limits:
cpus: ${HARBOR_PORTAL_CPU_LIMIT:-0.5}
memory: ${HARBOR_PORTAL_MEMORY_LIMIT:-512M}
reservations:
cpus: ${HARBOR_PORTAL_CPU_RESERVATION:-0.25}
memory: ${HARBOR_PORTAL_MEMORY_RESERVATION:-256M}
# Harbor Proxy (Nginx) # Harbor Proxy (Nginx)
harbor-proxy: harbor-proxy:
@@ -107,6 +139,14 @@ services:
condition: service_healthy condition: service_healthy
environment: environment:
- TZ=${TZ:-UTC} - TZ=${TZ:-UTC}
deploy:
resources:
limits:
cpus: ${HARBOR_PROXY_CPU_LIMIT:-1.0}
memory: ${HARBOR_PROXY_MEMORY_LIMIT:-512M}
reservations:
cpus: ${HARBOR_PROXY_CPU_RESERVATION:-0.25}
memory: ${HARBOR_PROXY_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/"]
interval: 30s interval: 30s
@@ -127,11 +167,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.00' cpus: ${HARBOR_DB_CPU_LIMIT:-1.00}
memory: 1G memory: ${HARBOR_DB_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${HARBOR_DB_CPU_RESERVATION:-0.25}
memory: 256M memory: ${HARBOR_DB_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"] test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s interval: 30s
@@ -150,11 +190,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.50' cpus: ${HARBOR_REDIS_CPU_LIMIT:-0.50}
memory: 256M memory: ${HARBOR_REDIS_MEMORY_LIMIT:-256M}
reservations: reservations:
cpus: '0.10' cpus: ${HARBOR_REDIS_CPU_RESERVATION:-0.10}
memory: 64M memory: ${HARBOR_REDIS_MEMORY_RESERVATION:-64M}
healthcheck: healthcheck:
test: ["CMD", "redis-cli", "ping"] test: ["CMD", "redis-cli", "ping"]
interval: 10s interval: 10s

View File

@@ -25,11 +25,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '4.0' cpus: ${HBASE_CPU_LIMIT:-4.0}
memory: 4G memory: ${HBASE_MEMORY_LIMIT:-4G}
reservations: reservations:
cpus: '1.0' cpus: ${HBASE_CPU_RESERVATION:-1.0}
memory: 2G memory: ${HBASE_MEMORY_RESERVATION:-2G}
healthcheck: healthcheck:
test: ["CMD-SHELL", "echo 'status' | hbase shell -n || exit 1"] test: ["CMD-SHELL", "echo 'status' | hbase shell -n || exit 1"]
interval: 30s interval: 30s

View File

@@ -28,11 +28,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.00' cpus: ${JENKINS_CPU_LIMIT:-2.00}
memory: 3G memory: ${JENKINS_MEMORY_LIMIT:-3G}
reservations: reservations:
cpus: '0.50' cpus: ${JENKINS_CPU_RESERVATION:-0.50}
memory: 1G memory: ${JENKINS_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/login || exit 1"] test: ["CMD-SHELL", "curl -f http://localhost:8080/login || exit 1"]
interval: 30s interval: 30s

View File

@@ -22,11 +22,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.00' cpus: ${OFFICECONVERTER_CPU_LIMIT:-2.00}
memory: 2G memory: ${OFFICECONVERTER_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.50' cpus: ${OFFICECONVERTER_CPU_RESERVATION:-0.50}
memory: 512M memory: ${OFFICECONVERTER_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/ready"] test: ["CMD", "curl", "-f", "http://localhost:8000/ready"]
interval: 30s interval: 30s

View File

@@ -28,11 +28,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.00' cpus: ${ZOOKEEPER_CPU_LIMIT:-1.00}
memory: 1G memory: ${ZOOKEEPER_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${ZOOKEEPER_CPU_RESERVATION:-0.25}
memory: 256M memory: ${ZOOKEEPER_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "echo ruok | nc localhost 2181 | grep imok"] test: ["CMD-SHELL", "echo ruok | nc localhost 2181 | grep imok"]
interval: 30s interval: 30s
@@ -76,11 +76,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.00' cpus: ${KAFKA_CPU_LIMIT:-2.00}
memory: 2G memory: ${KAFKA_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.50' cpus: ${KAFKA_CPU_RESERVATION:-0.50}
memory: 1G memory: ${KAFKA_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD-SHELL", "kafka-broker-api-versions --bootstrap-server localhost:9092"] test: ["CMD-SHELL", "kafka-broker-api-versions --bootstrap-server localhost:9092"]
interval: 30s interval: 30s
@@ -108,11 +108,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.50' cpus: ${KAFKA_UI_CPU_LIMIT:-0.50}
memory: 512M memory: ${KAFKA_UI_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.10' cpus: ${KAFKA_UI_CPU_RESERVATION:-0.10}
memory: 128M memory: ${KAFKA_UI_MEMORY_RESERVATION:-128M}
profiles: profiles:
- ui - ui

View File

@@ -29,11 +29,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.00' cpus: ${KIBANA_CPU_LIMIT:-1.00}
memory: 1G memory: ${KIBANA_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${KIBANA_CPU_RESERVATION:-0.25}
memory: 512M memory: ${KIBANA_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:5601/api/status || exit 1"] test: ["CMD-SHELL", "curl -f http://localhost:5601/api/status || exit 1"]
interval: 30s interval: 30s

View File

@@ -32,11 +32,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${KODBOX_CPU_LIMIT:-2.0}
memory: 2G memory: ${KODBOX_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.5' cpus: ${KODBOX_CPU_RESERVATION:-0.5}
memory: 256M memory: ${KODBOX_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80/"]
interval: 30s interval: 30s
@@ -68,11 +68,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${KODBOX_DB_CPU_LIMIT:-1.0}
memory: 1G memory: ${KODBOX_DB_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${KODBOX_DB_CPU_RESERVATION:-0.25}
memory: 256M memory: ${KODBOX_DB_MEMORY_RESERVATION:-256M}
kodbox-redis: kodbox-redis:
<<: *defaults <<: *defaults
@@ -94,11 +94,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.50' cpus: ${KODBOX_REDIS_CPU_LIMIT:-0.50}
memory: 512M memory: ${KODBOX_REDIS_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${KODBOX_REDIS_CPU_RESERVATION:-0.25}
memory: 128M memory: ${KODBOX_REDIS_MEMORY_RESERVATION:-128M}
volumes: volumes:
kodbox_data: kodbox_data:

View File

@@ -21,11 +21,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.00' cpus: ${KONG_DB_CPU_LIMIT:-1.00}
memory: 512M memory: ${KONG_DB_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${KONG_DB_CPU_RESERVATION:-0.25}
memory: 128M memory: ${KONG_DB_MEMORY_RESERVATION:-128M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U kong"] test: ["CMD-SHELL", "pg_isready -U kong"]
interval: 30s interval: 30s
@@ -83,11 +83,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.00' cpus: ${KONG_CPU_LIMIT:-1.00}
memory: 1G memory: ${KONG_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${KONG_CPU_RESERVATION:-0.25}
memory: 256M memory: ${KONG_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "kong health"] test: ["CMD-SHELL", "kong health"]
interval: 30s interval: 30s
@@ -113,11 +113,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.50' cpus: ${KONGA_CPU_LIMIT:-0.50}
memory: 256M memory: ${KONGA_MEMORY_LIMIT:-256M}
reservations: reservations:
cpus: '0.10' cpus: ${KONGA_CPU_RESERVATION:-0.10}
memory: 64M memory: ${KONGA_MEMORY_RESERVATION:-64M}
profiles: profiles:
- gui - gui

View File

@@ -26,11 +26,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${LANGFUSE_CPU_LIMIT:-2.0}
memory: 2G memory: ${LANGFUSE_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.5' cpus: ${LANGFUSE_CPU_RESERVATION:-0.5}
memory: 512M memory: ${LANGFUSE_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/public/health"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/public/health"]
interval: 30s interval: 30s
@@ -57,11 +57,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${LANGFUSE_DB_CPU_LIMIT:-1.0}
memory: 1G memory: ${LANGFUSE_DB_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${LANGFUSE_DB_CPU_RESERVATION:-0.25}
memory: 256M memory: ${LANGFUSE_DB_MEMORY_RESERVATION:-256M}
volumes: volumes:
langfuse_db_data: langfuse_db_data:

View File

@@ -27,11 +27,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.00' cpus: ${LIBREOFFICE_CPU_LIMIT:-2.00}
memory: 2G memory: ${LIBREOFFICE_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.50' cpus: ${LIBREOFFICE_CPU_RESERVATION:-0.50}
memory: 512M memory: ${LIBREOFFICE_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "-k", "https://localhost:3001/"] test: ["CMD", "curl", "-f", "-k", "https://localhost:3001/"]
interval: 30s interval: 30s

View File

@@ -41,11 +41,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.00' cpus: ${LITELLM_CPU_LIMIT:-2.00}
memory: 2G memory: ${LITELLM_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.50' cpus: ${LITELLM_CPU_RESERVATION:-0.50}
memory: 512M memory: ${LITELLM_MEMORY_RESERVATION:-512M}
db: db:
<<: *defaults <<: *defaults
@@ -68,11 +68,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.00' cpus: ${LITELLM_DB_CPU_LIMIT:-1.00}
memory: 1G memory: ${LITELLM_DB_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${LITELLM_DB_CPU_RESERVATION:-0.25}
memory: 256M memory: ${LITELLM_DB_MEMORY_RESERVATION:-256M}
prometheus: prometheus:
<<: *defaults <<: *defaults
@@ -99,11 +99,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.00' cpus: ${LITELLM_PROMETHEUS_CPU_LIMIT:-1.00}
memory: 1G memory: ${LITELLM_PROMETHEUS_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${LITELLM_PROMETHEUS_CPU_RESERVATION:-0.25}
memory: 256M memory: ${LITELLM_PROMETHEUS_MEMORY_RESERVATION:-256M}
volumes: volumes:
prometheus_data: prometheus_data:

View File

@@ -38,11 +38,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.50' cpus: ${LOGSTASH_CPU_LIMIT:-1.50}
memory: 2G memory: ${LOGSTASH_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.50' cpus: ${LOGSTASH_CPU_RESERVATION:-0.50}
memory: 1G memory: ${LOGSTASH_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:9600/_node/stats || exit 1"] test: ["CMD-SHELL", "curl -f http://localhost:9600/_node/stats || exit 1"]
interval: 30s interval: 30s

View File

@@ -28,11 +28,11 @@ x-mariadb-galera: &mariadb-galera
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${MARIADB_CPU_LIMIT:-2.0}
memory: 2G memory: ${MARIADB_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '1.0' cpus: ${MARIADB_CPU_RESERVATION:-1.0}
memory: 1G memory: ${MARIADB_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 30s interval: 30s

View File

@@ -37,11 +37,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${MILVUS_EMBED_CPU_LIMIT:-2.0}
memory: 4G memory: ${MILVUS_EMBED_MEMORY_LIMIT:-4G}
reservations: reservations:
cpus: '1.0' cpus: ${MILVUS_EMBED_CPU_RESERVATION:-1.0}
memory: 2G memory: ${MILVUS_EMBED_MEMORY_RESERVATION:-2G}
attu: attu:
<<: *defaults <<: *defaults
@@ -56,11 +56,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.25' cpus: ${ATTU_CPU_LIMIT:-0.25}
memory: 256M memory: ${ATTU_MEMORY_LIMIT:-256M}
reservations: reservations:
cpus: '0.1' cpus: ${ATTU_CPU_RESERVATION:-0.1}
memory: 128M memory: ${ATTU_MEMORY_RESERVATION:-128M}
volumes: volumes:

View File

@@ -28,11 +28,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.25' cpus: ${ETCD_CPU_LIMIT:-0.25}
memory: 256M memory: ${ETCD_MEMORY_LIMIT:-256M}
reservations: reservations:
cpus: '0.1' cpus: ${ETCD_CPU_RESERVATION:-0.1}
memory: 128M memory: ${ETCD_MEMORY_RESERVATION:-128M}
minio: minio:
<<: *defaults <<: *defaults
@@ -56,11 +56,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.5' cpus: ${MINIO_STANDALONE_CPU_LIMIT:-0.5}
memory: 512M memory: ${MINIO_STANDALONE_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.1' cpus: ${MINIO_STANDALONE_CPU_RESERVATION:-0.1}
memory: 256M memory: ${MINIO_STANDALONE_MEMORY_RESERVATION:-256M}
milvus-standalone: milvus-standalone:
<<: *defaults <<: *defaults
@@ -92,11 +92,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${MILVUS_CPU_LIMIT:-2.0}
memory: 4G memory: ${MILVUS_MEMORY_LIMIT:-4G}
reservations: reservations:
cpus: '1.0' cpus: ${MILVUS_CPU_RESERVATION:-1.0}
memory: 2G memory: ${MILVUS_MEMORY_RESERVATION:-2G}
attu: attu:
<<: *defaults <<: *defaults
@@ -114,11 +114,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.25' cpus: ${ATTU_CPU_LIMIT:-0.25}
memory: 256M memory: ${ATTU_MEMORY_LIMIT:-256M}
reservations: reservations:
cpus: '0.1' cpus: ${ATTU_CPU_RESERVATION:-0.1}
memory: 128M memory: ${ATTU_MEMORY_RESERVATION:-128M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"]
interval: 30s interval: 30s

View File

@@ -37,11 +37,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${BEDROCK_CPU_LIMIT:-2.0}
memory: 2G memory: ${BEDROCK_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '1.0' cpus: ${BEDROCK_CPU_RESERVATION:-1.0}
memory: 1G memory: ${BEDROCK_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD-SHELL", "[ -f /data/valid_known_packs.json ]"] test: ["CMD-SHELL", "[ -f /data/valid_known_packs.json ]"]
interval: 30s interval: 30s

View File

@@ -19,11 +19,11 @@ x-mineru-sglang: &mineru-sglang
deploy: deploy:
resources: resources:
limits: limits:
cpus: '8.0' cpus: ${MINERU_SGLANG_CPU_LIMIT:-8.0}
memory: 4G memory: ${MINERU_SGLANG_MEMORY_LIMIT:-4G}
reservations: reservations:
cpus: '1.0' cpus: ${MINERU_SGLANG_CPU_RESERVATION:-1.0}
memory: 2G memory: ${MINERU_SGLANG_MEMORY_RESERVATION:-2G}
devices: devices:
- driver: nvidia - driver: nvidia
device_ids: [ '0' ] device_ids: [ '0' ]

View File

@@ -30,11 +30,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${MINIO_CPU_LIMIT:-1.0}
memory: 1G memory: ${MINIO_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.5' cpus: ${MINIO_CPU_RESERVATION:-0.5}
memory: 512M memory: ${MINIO_MEMORY_RESERVATION:-512M}
volumes: volumes:

View File

@@ -20,11 +20,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${POSTGRES_MLFLOW_CPU_LIMIT:-1.0}
memory: 1G memory: ${POSTGRES_MLFLOW_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.5' cpus: ${POSTGRES_MLFLOW_CPU_RESERVATION:-0.5}
memory: 512M memory: ${POSTGRES_MLFLOW_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-mlflow}"] test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-mlflow}"]
interval: 10s interval: 10s
@@ -48,11 +48,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${MINIO_MLFLOW_CPU_LIMIT:-1.0}
memory: 1G memory: ${MINIO_MLFLOW_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.5' cpus: ${MINIO_MLFLOW_CPU_RESERVATION:-0.5}
memory: 512M memory: ${MINIO_MLFLOW_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s interval: 30s
@@ -108,11 +108,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${MLFLOW_CPU_LIMIT:-2.0}
memory: 2G memory: ${MLFLOW_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '1.0' cpus: ${MLFLOW_CPU_RESERVATION:-1.0}
memory: 1G memory: ${MLFLOW_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5000/health"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5000/health"]
interval: 30s interval: 30s

View File

@@ -37,11 +37,12 @@ x-mongo: &mongo
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.50' cpus: ${MONGO_REPLICA_SINGLE_CPU_LIMIT:-1.00}
memory: 1G memory: ${MONGO_REPLICA_SINGLE_MEMORY_LIMIT:-2048M}
reservations: reservations:
cpus: '0.25' cpus: ${MONGO_REPLICA_SINGLE_CPU_RESERVATION:-0.50}
memory: 256M memory: ${MONGO_REPLICA_SINGLE_MEMORY_RESERVATION:-1024M}
services: services:
mongo1: mongo1:
@@ -100,11 +101,12 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.25' cpus: ${MONGO_REPLICA_SINGLE_INIT_CPU_LIMIT:-1.00}
memory: 256M memory: ${MONGO_REPLICA_SINGLE_INIT_MEMORY_LIMIT:-2048M}
reservations: reservations:
cpus: '0.10' cpus: ${MONGO_REPLICA_SINGLE_INIT_CPU_RESERVATION:-0.50}
memory: 128M memory: ${MONGO_REPLICA_SINGLE_INIT_MEMORY_RESERVATION:-1024M}
volumes: volumes:
mongo_data: mongo_data:

View File

@@ -36,11 +36,11 @@ x-mongo: &mongo
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.50' cpus: ${MONGO_REPLICA_CPU_LIMIT:-1.00}
memory: 1G memory: ${MONGO_REPLICA_MEMORY_LIMIT:-2048M}
reservations: reservations:
cpus: '0.25' cpus: ${MONGO_REPLICA_CPU_RESERVATION:-0.50}
memory: 256M memory: ${MONGO_REPLICA_MEMORY_RESERVATION:-1024M}
services: services:
mongo1: mongo1:
@@ -117,8 +117,8 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.25' cpus: ${MONGO_REPLICA_INIT_CPU_LIMIT:-1.00}
memory: 256M memory: ${MONGO_REPLICA_INIT_MEMORY_LIMIT:-2048M}
reservations: reservations:
cpus: '0.10' cpus: ${MONGO_REPLICA_INIT_CPU_RESERVATION:-0.50}
memory: 128M memory: ${MONGO_REPLICA_INIT_MEMORY_RESERVATION:-1024M}

View File

@@ -19,20 +19,21 @@ services:
- "${MONGO_PORT_OVERRIDE:-27017}:27017" - "${MONGO_PORT_OVERRIDE:-27017}:27017"
volumes: volumes:
- mongo_data:/data/db - mongo_data:/data/db
deploy:
resources:
limits:
cpus: '0.50'
memory: 1G
reservations:
cpus: '0.25'
memory: 256M
healthcheck: healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"] test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3
start_period: 30s start_period: 30s
deploy:
resources:
limits:
cpus: ${MONGO_CPU_LIMIT:-1.00}
memory: ${MONGO_MEMORY_LIMIT:-2048M}
reservations:
cpus: ${MONGO_CPU_RESERVATION:-0.50}
memory: ${MONGO_MEMORY_RESERVATION:-1024M}
volumes: volumes:
mongo_data: mongo_data:

View File

@@ -24,11 +24,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${MYSQL_CPU_LIMIT:-2.0}
memory: 2G memory: ${MYSQL_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.5' cpus: ${MYSQL_CPU_RESERVATION:-0.5}
memory: 512M memory: ${MYSQL_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p$$MYSQL_ROOT_PASSWORD"] test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p$$MYSQL_ROOT_PASSWORD"]
interval: 30s interval: 30s

View File

@@ -42,11 +42,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${N8N_CPU_LIMIT:-2.0}
memory: 2G memory: ${N8N_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.5' cpus: ${N8N_CPU_RESERVATION:-0.5}
memory: 512M memory: ${N8N_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5678/healthz"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5678/healthz"]
interval: 30s interval: 30s
@@ -59,27 +59,19 @@ services:
image: ${GLOBAL_REGISTRY:-}postgres:${POSTGRES_VERSION:-17.2-alpine3.21} image: ${GLOBAL_REGISTRY:-}postgres:${POSTGRES_VERSION:-17.2-alpine3.21}
environment: environment:
- TZ=${TZ:-UTC} - TZ=${TZ:-UTC}
- POSTGRES_USER=${DB_POSTGRESDB_USER:-n8n} - POSTGRES_USER=${POSTGRES_USER:-n8n}
- POSTGRES_PASSWORD=${DB_POSTGRESDB_PASSWORD:-n8n123} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-}
- POSTGRES_DB=${DB_POSTGRESDB_DATABASE:-n8n} - POSTGRES_DB=${POSTGRES_DB:-n8n}
volumes: volumes:
- n8n_db_data:/var/lib/postgresql/data - n8n_db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_POSTGRESDB_USER:-n8n}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
profiles:
- postgres
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${N8N_DB_CPU_LIMIT:-1.0}
memory: 1G memory: ${N8N_DB_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${N8N_DB_CPU_RESERVATION:-0.5}
memory: 256M memory: ${N8N_DB_MEMORY_RESERVATION:-512M}
volumes: volumes:
n8n_data: n8n_data:

View File

@@ -31,11 +31,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${NACOS_CPU_LIMIT:-1.0}
memory: 1G memory: ${NACOS_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.5' cpus: ${NACOS_CPU_RESERVATION:-0.5}
memory: 512M memory: ${NACOS_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8848/nacos/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8848/nacos/"]
interval: 30s interval: 30s

View File

@@ -30,11 +30,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.5' cpus: ${NEBULA_METAD_CPU_LIMIT:-0.5}
memory: 512M memory: ${NEBULA_METAD_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${NEBULA_METAD_CPU_RESERVATION:-0.25}
memory: 256M memory: ${NEBULA_METAD_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD", "/usr/local/nebula/bin/nebula-metad", "--version"] test: ["CMD", "/usr/local/nebula/bin/nebula-metad", "--version"]
interval: 30s interval: 30s
@@ -68,11 +68,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${NEBULA_STORAGED_CPU_LIMIT:-1.0}
memory: 1G memory: ${NEBULA_STORAGED_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.5' cpus: ${NEBULA_STORAGED_CPU_RESERVATION:-0.5}
memory: 512M memory: ${NEBULA_STORAGED_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD", "/usr/local/nebula/bin/nebula-storaged", "--version"] test: ["CMD", "/usr/local/nebula/bin/nebula-storaged", "--version"]
interval: 30s interval: 30s
@@ -106,11 +106,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${NEBULA_GRAPHD_CPU_LIMIT:-1.0}
memory: 1G memory: ${NEBULA_GRAPHD_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.5' cpus: ${NEBULA_GRAPHD_CPU_RESERVATION:-0.5}
memory: 512M memory: ${NEBULA_GRAPHD_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD", "/usr/local/nebula/bin/nebula-graphd", "--version"] test: ["CMD", "/usr/local/nebula/bin/nebula-graphd", "--version"]
interval: 30s interval: 30s

View File

@@ -28,11 +28,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${NEO4J_CPU_LIMIT:-2.0}
memory: 2G memory: ${NEO4J_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.5' cpus: ${NEO4J_CPU_RESERVATION:-0.5}
memory: 1G memory: ${NEO4J_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:7474/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:7474/"]
interval: 30s interval: 30s

View File

@@ -28,11 +28,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.00' cpus: ${NGINX_CPU_LIMIT:-1.00}
memory: 512M memory: ${NGINX_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${NGINX_CPU_RESERVATION:-0.25}
memory: 64M memory: ${NGINX_MEMORY_RESERVATION:-64M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80/"]
interval: 30s interval: 30s

View File

@@ -24,11 +24,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.25' cpus: ${NODE_EXPORTER_CPU_LIMIT:-0.25}
memory: 128M memory: ${NODE_EXPORTER_MEMORY_LIMIT:-128M}
reservations: reservations:
cpus: '0.1' cpus: ${NODE_EXPORTER_CPU_RESERVATION:-0.1}
memory: 64M memory: ${NODE_EXPORTER_MEMORY_RESERVATION:-64M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9100/metrics"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9100/metrics"]
interval: 30s interval: 30s

View File

@@ -28,11 +28,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '4.0' cpus: ${OCEANBASE_CPU_LIMIT:-4.0}
memory: 10G memory: ${OCEANBASE_MEMORY_LIMIT:-10G}
reservations: reservations:
cpus: '2.0' cpus: ${OCEANBASE_CPU_RESERVATION:-2.0}
memory: 8G memory: ${OCEANBASE_MEMORY_RESERVATION:-8G}
healthcheck: healthcheck:
test: ["CMD-SHELL", "mysql -h127.0.0.1 -P2881 -uroot -p$$OB_ROOT_PASSWORD -e 'SELECT 1' || exit 1"] test: ["CMD-SHELL", "mysql -h127.0.0.1 -P2881 -uroot -p$$OB_ROOT_PASSWORD -e 'SELECT 1' || exit 1"]
interval: 30s interval: 30s

View File

@@ -28,11 +28,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${ODOO_CPU_LIMIT:-2.0}
memory: 2G memory: ${ODOO_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.5' cpus: ${ODOO_CPU_RESERVATION:-0.5}
memory: 1G memory: ${ODOO_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8069/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8069/"]
interval: 30s interval: 30s
@@ -54,11 +54,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${ODOO_DB_CPU_LIMIT:-1.0}
memory: 1G memory: ${ODOO_DB_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${ODOO_DB_CPU_RESERVATION:-0.25}
memory: 512M memory: ${ODOO_DB_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-odoo}"] test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-odoo}"]
interval: 10s interval: 10s

View File

@@ -1,5 +1,5 @@
# Ollama Version # Ollama Version
OLLAMA_VERSION=0.12.0 OLLAMA_VERSION=0.12.10
# Port to bind to on the host machine # Port to bind to on the host machine
OLLAMA_PORT_OVERRIDE=11434 OLLAMA_PORT_OVERRIDE=11434

View File

@@ -9,7 +9,7 @@ x-defaults: &defaults
services: services:
ollama: ollama:
<<: *defaults <<: *defaults
image: ${GLOBAL_REGISTRY:-}ollama/ollama:${OLLAMA_VERSION:-0.12.6} image: ${GLOBAL_REGISTRY:-}ollama/ollama:${OLLAMA_VERSION:-0.12.10}
ports: ports:
- "${OLLAMA_PORT_OVERRIDE:-11434}:11434" - "${OLLAMA_PORT_OVERRIDE:-11434}:11434"
volumes: volumes:
@@ -17,24 +17,24 @@ services:
environment: environment:
- TZ=${TZ:-UTC} - TZ=${TZ:-UTC}
ipc: host ipc: host
deploy:
resources:
limits:
cpus: '8.0'
memory: 4G
reservations:
cpus: '2.0'
memory: 2G
devices:
- driver: nvidia
device_ids: [ '0' ]
capabilities: [ gpu ]
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:11434/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:11434/"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3
start_period: 30s start_period: 30s
deploy:
resources:
limits:
cpus: ${OLLAMA_CPU_LIMIT:-8.0}
memory: ${OLLAMA_MEMORY_LIMIT:-16G}
reservations:
cpus: ${OLLAMA_CPU_RESERVATION:-2.0}
memory: ${OLLAMA_MEMORY_RESERVATION:-4G}
devices:
- driver: nvidia
device_ids: [ '0' ]
capabilities: [ gpu ]
volumes: volumes:
ollama_models: ollama_models:

View File

@@ -21,11 +21,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1' cpus: ${OPEN_WEBUI_CPU_LIMIT:-1}
memory: 512M memory: ${OPEN_WEBUI_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.1' cpus: ${OPEN_WEBUI_CPU_RESERVATION:-0.1}
memory: 128M memory: ${OPEN_WEBUI_MEMORY_RESERVATION:-128M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"]
interval: 30s interval: 30s

View File

@@ -24,5 +24,5 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.1' cpus: ${OPENCOZE_INFO_CPU_LIMIT:-0.1}
memory: 64M memory: ${OPENCOZE_INFO_MEMORY_LIMIT:-64M}

View File

@@ -28,11 +28,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.00' cpus: ${OPENCUT_DB_CPU_LIMIT:-2.00}
memory: 1G memory: ${OPENCUT_DB_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.50' cpus: ${OPENCUT_DB_CPU_RESERVATION:-0.50}
memory: 256M memory: ${OPENCUT_DB_MEMORY_RESERVATION:-256M}
redis: redis:
<<: *defaults <<: *defaults
@@ -48,11 +48,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.00' cpus: ${OPENCUT_REDIS_CPU_LIMIT:-1.00}
memory: 512M memory: ${OPENCUT_REDIS_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${OPENCUT_REDIS_CPU_RESERVATION:-0.25}
memory: 128M memory: ${OPENCUT_REDIS_MEMORY_RESERVATION:-128M}
serverless-redis-http: serverless-redis-http:
<<: *defaults <<: *defaults
@@ -75,11 +75,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.00' cpus: ${OPENCUT_SRH_CPU_LIMIT:-1.00}
memory: 256M memory: ${OPENCUT_SRH_MEMORY_LIMIT:-256M}
reservations: reservations:
cpus: '0.25' cpus: ${OPENCUT_SRH_CPU_RESERVATION:-0.25}
memory: 64M memory: ${OPENCUT_SRH_MEMORY_RESERVATION:-64M}
web: web:
<<: *defaults <<: *defaults
@@ -116,11 +116,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.00' cpus: ${OPENCUT_WEB_CPU_LIMIT:-2.00}
memory: 2G memory: ${OPENCUT_WEB_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.50' cpus: ${OPENCUT_WEB_CPU_RESERVATION:-0.50}
memory: 512M memory: ${OPENCUT_WEB_MEMORY_RESERVATION:-512M}
volumes: volumes:
postgres_data: postgres_data:

View File

@@ -22,11 +22,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${OPENLIST_CPU_LIMIT:-1.0}
memory: 1G memory: ${OPENLIST_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${OPENLIST_CPU_RESERVATION:-0.25}
memory: 256M memory: ${OPENLIST_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5244/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5244/"]
interval: 30s interval: 30s

View File

@@ -34,11 +34,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${OPENSEARCH_CPU_LIMIT:-2.0}
memory: 2G memory: ${OPENSEARCH_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '1.0' cpus: ${OPENSEARCH_CPU_RESERVATION:-1.0}
memory: 1G memory: ${OPENSEARCH_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:9200/_cluster/health || exit 1"] test: ["CMD-SHELL", "curl -f http://localhost:9200/_cluster/health || exit 1"]
interval: 30s interval: 30s
@@ -61,11 +61,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${OPENSEARCH_DASHBOARDS_CPU_LIMIT:-1.0}
memory: 1G memory: ${OPENSEARCH_DASHBOARDS_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.5' cpus: ${OPENSEARCH_DASHBOARDS_CPU_RESERVATION:-0.5}
memory: 512M memory: ${OPENSEARCH_DASHBOARDS_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5601/api/status"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5601/api/status"]
interval: 30s interval: 30s

View File

@@ -35,11 +35,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.25' cpus: ${POCKETBASE_CPU_LIMIT:-0.25}
memory: 256M memory: ${POCKETBASE_MEMORY_LIMIT:-256M}
reservations: reservations:
cpus: '0.1' cpus: ${POCKETBASE_CPU_RESERVATION:-0.1}
memory: 128M memory: ${POCKETBASE_MEMORY_RESERVATION:-128M}
volumes: volumes:
pb_data: pb_data:

View File

@@ -29,11 +29,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.00' cpus: ${PORTAINER_CPU_LIMIT:-1.00}
memory: 512M memory: ${PORTAINER_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${PORTAINER_CPU_RESERVATION:-0.25}
memory: 128M memory: ${PORTAINER_MEMORY_RESERVATION:-128M}
volumes: volumes:
portainer_data: portainer_data:

View File

@@ -23,8 +23,8 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.00' cpus: ${PORTKEY_GATEWAY_CPU_LIMIT:-1.00}
memory: 512M memory: ${PORTKEY_GATEWAY_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${PORTKEY_GATEWAY_CPU_RESERVATION:-0.25}
memory: 128M memory: ${PORTKEY_GATEWAY_MEMORY_RESERVATION:-128M}

View File

@@ -25,11 +25,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${POSTGRES_CPU_LIMIT:-2.0}
memory: 2G memory: ${POSTGRES_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.5' cpus: ${POSTGRES_CPU_RESERVATION:-0.5}
memory: 512M memory: ${POSTGRES_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"] test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 30s interval: 30s

View File

@@ -36,11 +36,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${PROMETHEUS_CPU_LIMIT:-1.0}
memory: 2G memory: ${PROMETHEUS_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.25' cpus: ${PROMETHEUS_CPU_RESERVATION:-0.25}
memory: 512M memory: ${PROMETHEUS_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9090/-/healthy"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9090/-/healthy"]
interval: 30s interval: 30s

View File

@@ -29,11 +29,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '4.0' cpus: ${PYTORCH_CPU_LIMIT:-4.0}
memory: 16G memory: ${PYTORCH_MEMORY_LIMIT:-16G}
reservations: reservations:
cpus: '2.0' cpus: ${PYTORCH_CPU_RESERVATION:-2.0}
memory: 8G memory: ${PYTORCH_MEMORY_RESERVATION:-8G}
devices: devices:
- driver: nvidia - driver: nvidia
count: ${GPU_COUNT:-1} count: ${GPU_COUNT:-1}

View File

@@ -22,11 +22,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${QDRANT_CPU_LIMIT:-1.0}
memory: 1G memory: ${QDRANT_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.5' cpus: ${QDRANT_CPU_RESERVATION:-0.5}
memory: 256M memory: ${QDRANT_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:6333/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:6333/"]
interval: 30s interval: 30s

View File

@@ -22,11 +22,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${RABBITMQ_CPU_LIMIT:-1.0}
memory: 1G memory: ${RABBITMQ_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.5' cpus: ${RABBITMQ_CPU_RESERVATION:-0.5}
memory: 512M memory: ${RABBITMQ_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"] test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
interval: 30s interval: 30s

View File

@@ -24,11 +24,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '4.0' cpus: ${RAY_HEAD_CPU_LIMIT:-4.0}
memory: 8G memory: ${RAY_HEAD_MEMORY_LIMIT:-8G}
reservations: reservations:
cpus: '2.0' cpus: ${RAY_HEAD_CPU_RESERVATION:-2.0}
memory: 4G memory: ${RAY_HEAD_MEMORY_RESERVATION:-4G}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8265/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8265/"]
interval: 30s interval: 30s
@@ -50,11 +50,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${RAY_WORKER_1_CPU_LIMIT:-2.0}
memory: 4G memory: ${RAY_WORKER_1_MEMORY_LIMIT:-4G}
reservations: reservations:
cpus: '1.0' cpus: ${RAY_WORKER_1_CPU_RESERVATION:-1.0}
memory: 2G memory: ${RAY_WORKER_1_MEMORY_RESERVATION:-2G}
ray-worker-2: ray-worker-2:
<<: *defaults <<: *defaults
@@ -70,11 +70,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${RAY_WORKER_2_CPU_LIMIT:-2.0}
memory: 4G memory: ${RAY_WORKER_2_MEMORY_LIMIT:-4G}
reservations: reservations:
cpus: '1.0' cpus: ${RAY_WORKER_2_CPU_RESERVATION:-1.0}
memory: 2G memory: ${RAY_WORKER_2_MEMORY_RESERVATION:-2G}
volumes: volumes:
ray_storage: ray_storage:

View File

@@ -49,11 +49,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.5' cpus: ${REDIS_CLUSTER_1_CPU_LIMIT:-0.5}
memory: 512M memory: ${REDIS_CLUSTER_1_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${REDIS_CLUSTER_1_CPU_RESERVATION:-0.25}
memory: 256M memory: ${REDIS_CLUSTER_1_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD", "redis-cli", "ping"] test: ["CMD", "redis-cli", "ping"]
interval: 10s interval: 10s
@@ -74,11 +74,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.5' cpus: ${REDIS_CLUSTER_2_CPU_LIMIT:-0.5}
memory: 512M memory: ${REDIS_CLUSTER_2_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${REDIS_CLUSTER_2_CPU_RESERVATION:-0.25}
memory: 256M memory: ${REDIS_CLUSTER_2_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD", "redis-cli", "ping"] test: ["CMD", "redis-cli", "ping"]
interval: 10s interval: 10s
@@ -99,11 +99,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.5' cpus: ${REDIS_CLUSTER_3_CPU_LIMIT:-0.5}
memory: 512M memory: ${REDIS_CLUSTER_3_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${REDIS_CLUSTER_3_CPU_RESERVATION:-0.25}
memory: 256M memory: ${REDIS_CLUSTER_3_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD", "redis-cli", "ping"] test: ["CMD", "redis-cli", "ping"]
interval: 10s interval: 10s
@@ -124,11 +124,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.5' cpus: ${REDIS_CLUSTER_4_CPU_LIMIT:-0.5}
memory: 512M memory: ${REDIS_CLUSTER_4_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${REDIS_CLUSTER_4_CPU_RESERVATION:-0.25}
memory: 256M memory: ${REDIS_CLUSTER_4_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD", "redis-cli", "ping"] test: ["CMD", "redis-cli", "ping"]
interval: 10s interval: 10s
@@ -149,11 +149,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.5' cpus: ${REDIS_CLUSTER_5_CPU_LIMIT:-0.5}
memory: 512M memory: ${REDIS_CLUSTER_5_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${REDIS_CLUSTER_5_CPU_RESERVATION:-0.25}
memory: 256M memory: ${REDIS_CLUSTER_5_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD", "redis-cli", "ping"] test: ["CMD", "redis-cli", "ping"]
interval: 10s interval: 10s
@@ -174,11 +174,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.5' cpus: ${REDIS_CLUSTER_6_CPU_LIMIT:-0.5}
memory: 512M memory: ${REDIS_CLUSTER_6_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${REDIS_CLUSTER_6_CPU_RESERVATION:-0.25}
memory: 256M memory: ${REDIS_CLUSTER_6_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD", "redis-cli", "ping"] test: ["CMD", "redis-cli", "ping"]
interval: 10s interval: 10s

View File

@@ -35,11 +35,11 @@ x-restate: &restate-defaults
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.00' cpus: ${RESTATE_CLUSTER_CPU_LIMIT:-2.00}
memory: 2G memory: ${RESTATE_CLUSTER_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.50' cpus: ${RESTATE_CLUSTER_CPU_RESERVATION:-0.50}
memory: 512M memory: ${RESTATE_CLUSTER_MEMORY_RESERVATION:-512M}
services: services:
restate-1: restate-1:
@@ -133,11 +133,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.00' cpus: ${RESTATE_CLUSTER_MINIO_CPU_LIMIT:-1.00}
memory: 512M memory: ${RESTATE_CLUSTER_MINIO_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${RESTATE_CLUSTER_MINIO_CPU_RESERVATION:-0.25}
memory: 128M memory: ${RESTATE_CLUSTER_MINIO_MEMORY_RESERVATION:-128M}
volumes: volumes:
restate_data: restate_data:

View File

@@ -29,11 +29,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.00' cpus: ${RESTATE_CPU_LIMIT:-2.00}
memory: 2G memory: ${RESTATE_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.50' cpus: ${RESTATE_CPU_RESERVATION:-0.50}
memory: 512M memory: ${RESTATE_MEMORY_RESERVATION:-512M}
volumes: volumes:
restate_data: restate_data:

View File

@@ -21,11 +21,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${ROCKETMQ_NAMESRV_CPU_LIMIT:-1.0}
memory: 1G memory: ${ROCKETMQ_NAMESRV_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${ROCKETMQ_NAMESRV_CPU_RESERVATION:-0.25}
memory: 512M memory: ${ROCKETMQ_NAMESRV_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "mqadmin clusterList -n localhost:9876 || exit 1"] test: ["CMD-SHELL", "mqadmin clusterList -n localhost:9876 || exit 1"]
interval: 30s interval: 30s
@@ -54,11 +54,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${ROCKETMQ_BROKER_CPU_LIMIT:-2.0}
memory: 2G memory: ${ROCKETMQ_BROKER_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.5' cpus: ${ROCKETMQ_BROKER_CPU_RESERVATION:-0.5}
memory: 1G memory: ${ROCKETMQ_BROKER_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD-SHELL", "mqadmin clusterList -n namesrv:9876 | grep -q broker || exit 1"] test: ["CMD-SHELL", "mqadmin clusterList -n namesrv:9876 | grep -q broker || exit 1"]
interval: 30s interval: 30s
@@ -80,11 +80,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${ROCKETMQ_DASHBOARD_CPU_LIMIT:-1.0}
memory: 512M memory: ${ROCKETMQ_DASHBOARD_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${ROCKETMQ_DASHBOARD_CPU_RESERVATION:-0.25}
memory: 256M memory: ${ROCKETMQ_DASHBOARD_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8080 || exit 1"] test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8080 || exit 1"]
interval: 30s interval: 30s

View File

@@ -33,11 +33,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.50' cpus: ${SEARXNG_CADDY_CPU_LIMIT:-0.50}
memory: 256M memory: ${SEARXNG_CADDY_MEMORY_LIMIT:-256M}
reservations: reservations:
cpus: '0.10' cpus: ${SEARXNG_CADDY_CPU_RESERVATION:-0.10}
memory: 64M memory: ${SEARXNG_CADDY_MEMORY_RESERVATION:-64M}
redis: redis:
<<: *defaults <<: *defaults
@@ -62,11 +62,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.50' cpus: ${SEARXNG_REDIS_CPU_LIMIT:-0.50}
memory: 256M memory: ${SEARXNG_REDIS_MEMORY_LIMIT:-256M}
reservations: reservations:
cpus: '0.10' cpus: ${SEARXNG_REDIS_CPU_RESERVATION:-0.10}
memory: 64M memory: ${SEARXNG_REDIS_MEMORY_RESERVATION:-64M}
searxng: searxng:
<<: *defaults <<: *defaults
@@ -100,11 +100,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.00' cpus: ${SEARXNG_CPU_LIMIT:-1.00}
memory: 1G memory: ${SEARXNG_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${SEARXNG_CPU_RESERVATION:-0.25}
memory: 256M memory: ${SEARXNG_MEMORY_RESERVATION:-256M}
networks: networks:
searxng: searxng:

View File

@@ -23,11 +23,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '4.0' cpus: ${SD_WEBUI_CPU_LIMIT:-4.0}
memory: 16G memory: ${SD_WEBUI_MEMORY_LIMIT:-16G}
reservations: reservations:
cpus: '2.0' cpus: ${SD_WEBUI_CPU_RESERVATION:-2.0}
memory: 8G memory: ${SD_WEBUI_MEMORY_RESERVATION:-8G}
devices: devices:
- driver: nvidia - driver: nvidia
count: ${GPU_COUNT:-1} count: ${GPU_COUNT:-1}

View File

@@ -38,11 +38,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${STIRLING_CPU_LIMIT:-2.0}
memory: 4G memory: ${STIRLING_MEMORY_LIMIT:-4G}
reservations: reservations:
cpus: '1.0' cpus: ${STIRLING_CPU_RESERVATION:-1.0}
memory: 2G memory: ${STIRLING_MEMORY_RESERVATION:-2G}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/"]
interval: 30s interval: 30s

View File

@@ -130,11 +130,11 @@ services:
deploy: deploy:
resources: resources:
reservations: reservations:
cpus: "0.1" cpus: ${TEMPORAL_CLI_CPU_RESERVATION:-0.1}
memory: "128M" memory: ${TEMPORAL_CLI_MEMORY_RESERVATION:-128M}
limits: limits:
cpus: "0.5" cpus: ${TEMPORAL_CLI_CPU_LIMIT:-0.5}
memory: "256M" memory: ${TEMPORAL_CLI_MEMORY_LIMIT:-256M}
postgres: postgres:
<<: *defaults <<: *defaults

View File

@@ -26,11 +26,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${TIDB_PD_CPU_LIMIT:-1.0}
memory: 1G memory: ${TIDB_PD_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${TIDB_PD_CPU_RESERVATION:-0.25}
memory: 512M memory: ${TIDB_PD_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "wget -q -O - http://localhost:2379/health || exit 1"] test: ["CMD-SHELL", "wget -q -O - http://localhost:2379/health || exit 1"]
interval: 30s interval: 30s
@@ -58,11 +58,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${TIDB_TIKV_CPU_LIMIT:-2.0}
memory: 2G memory: ${TIDB_TIKV_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.5' cpus: ${TIDB_TIKV_CPU_RESERVATION:-0.5}
memory: 1G memory: ${TIDB_TIKV_MEMORY_RESERVATION:-1G}
healthcheck: healthcheck:
test: ["CMD-SHELL", "wget -q -O - http://localhost:20180/status || exit 1"] test: ["CMD-SHELL", "wget -q -O - http://localhost:20180/status || exit 1"]
interval: 30s interval: 30s
@@ -88,11 +88,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${TIDB_CPU_LIMIT:-2.0}
memory: 2G memory: ${TIDB_MEMORY_LIMIT:-2G}
reservations: reservations:
cpus: '0.5' cpus: ${TIDB_CPU_RESERVATION:-0.5}
memory: 512M memory: ${TIDB_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "wget -q -O - http://localhost:10080/status || exit 1"] test: ["CMD-SHELL", "wget -q -O - http://localhost:10080/status || exit 1"]
interval: 30s interval: 30s

View File

@@ -27,11 +27,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${TIKV_PD_CPU_LIMIT:-1.0}
memory: 1G memory: ${TIKV_PD_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${TIKV_PD_CPU_RESERVATION:-0.25}
memory: 512M memory: ${TIKV_PD_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "wget -q -O - http://localhost:2379/health || exit 1"] test: ["CMD-SHELL", "wget -q -O - http://localhost:2379/health || exit 1"]
interval: 30s interval: 30s
@@ -63,11 +63,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: ${TIKV_CPU_LIMIT:-2.0}
memory: 4G memory: ${TIKV_MEMORY_LIMIT:-4G}
reservations: reservations:
cpus: '0.5' cpus: ${TIKV_CPU_RESERVATION:-0.5}
memory: 2G memory: ${TIKV_MEMORY_RESERVATION:-2G}
healthcheck: healthcheck:
test: ["CMD-SHELL", "wget -q -O - http://localhost:20180/status || exit 1"] test: ["CMD-SHELL", "wget -q -O - http://localhost:20180/status || exit 1"]
interval: 30s interval: 30s

View File

@@ -28,11 +28,11 @@ x-valkey-node: &valkey-node
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.50' cpus: ${VALKEY_CLUSTER_CPU_LIMIT:-0.50}
memory: 512M memory: ${VALKEY_CLUSTER_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${VALKEY_CLUSTER_CPU_RESERVATION:-0.25}
memory: 256M memory: ${VALKEY_CLUSTER_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD", "valkey-cli", "-a", "${VALKEY_PASSWORD:-passw0rd}", "ping"] test: ["CMD", "valkey-cli", "-a", "${VALKEY_PASSWORD:-passw0rd}", "ping"]
interval: 10s interval: 10s
@@ -125,8 +125,8 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.10' cpus: ${VALKEY_CLUSTER_INIT_CPU_LIMIT:-0.10}
memory: 128M memory: ${VALKEY_CLUSTER_INIT_MEMORY_LIMIT:-128M}
volumes: volumes:
valkey_data_1: valkey_data_1:

View File

@@ -30,11 +30,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.50' cpus: ${VALKEY_CPU_LIMIT:-0.50}
memory: 512M memory: ${VALKEY_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${VALKEY_CPU_RESERVATION:-0.25}
memory: 256M memory: ${VALKEY_MEMORY_RESERVATION:-256M}
healthcheck: healthcheck:
test: ["CMD", "valkey-cli", "ping"] test: ["CMD", "valkey-cli", "ping"]
interval: 10s interval: 10s

View File

@@ -30,11 +30,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.00' cpus: ${VERDACCIO_CPU_LIMIT:-1.00}
memory: 512M memory: ${VERDACCIO_MEMORY_LIMIT:-512M}
reservations: reservations:
cpus: '0.25' cpus: ${VERDACCIO_CPU_RESERVATION:-0.25}
memory: 128M memory: ${VERDACCIO_MEMORY_RESERVATION:-128M}
networks: networks:
verdaccio: verdaccio:

View File

@@ -31,11 +31,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '4.0' cpus: ${VLLM_CPU_LIMIT:-4.0}
memory: 8G memory: ${VLLM_MEMORY_LIMIT:-8G}
reservations: reservations:
cpus: '2.0' cpus: ${VLLM_CPU_RESERVATION:-2.0}
memory: 4G memory: ${VLLM_MEMORY_RESERVATION:-4G}
# Uncomment for GPU support # Uncomment for GPU support
# devices: # devices:
# - driver: nvidia # - driver: nvidia

View File

@@ -152,11 +152,11 @@ services:
deploy: deploy:
resources: resources:
reservations: reservations:
cpus: "0.1" cpus: ${WINDMILL_LSP_CPU_RESERVATION:-0.1}
memory: "128M" memory: ${WINDMILL_LSP_MEMORY_RESERVATION:-128M}
limits: limits:
cpus: "0.5" cpus: ${WINDMILL_LSP_CPU_LIMIT:-0.5}
memory: "512M" memory: ${WINDMILL_LSP_MEMORY_LIMIT:-512M}
volumes: volumes:
postgres_data: postgres_data:

View File

@@ -29,11 +29,11 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '1.0' cpus: ${ZOOKEEPER_CPU_LIMIT:-1.0}
memory: 1G memory: ${ZOOKEEPER_MEMORY_LIMIT:-1G}
reservations: reservations:
cpus: '0.25' cpus: ${ZOOKEEPER_CPU_RESERVATION:-0.25}
memory: 512M memory: ${ZOOKEEPER_MEMORY_RESERVATION:-512M}
healthcheck: healthcheck:
test: ["CMD-SHELL", "echo ruok | nc localhost 2181 | grep imok"] test: ["CMD-SHELL", "echo ruok | nc localhost 2181 | grep imok"]
interval: 30s interval: 30s