chore: update format
This commit is contained in:
@@ -38,6 +38,14 @@ services:
|
||||
- REGISTRY_STORAGE_PROVIDER_NAME=filesystem
|
||||
- READ_ONLY=false
|
||||
- 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:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/api/v2.0/ping"]
|
||||
interval: 30s
|
||||
@@ -67,6 +75,14 @@ services:
|
||||
- POSTGRESQL_USERNAME=postgres
|
||||
- POSTGRESQL_PASSWORD=${HARBOR_DB_PASSWORD:-password}
|
||||
- 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:
|
||||
@@ -77,6 +93,14 @@ services:
|
||||
environment:
|
||||
- TZ=${TZ:-UTC}
|
||||
- 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:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5000/"]
|
||||
interval: 30s
|
||||
@@ -90,6 +114,14 @@ services:
|
||||
image: ${GLOBAL_REGISTRY:-}goharbor/harbor-portal:${HARBOR_VERSION:-v2.12.0}
|
||||
environment:
|
||||
- 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:
|
||||
@@ -107,6 +139,14 @@ services:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- 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:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/"]
|
||||
interval: 30s
|
||||
@@ -127,11 +167,11 @@ services:
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.00'
|
||||
memory: 1G
|
||||
cpus: ${HARBOR_DB_CPU_LIMIT:-1.00}
|
||||
memory: ${HARBOR_DB_MEMORY_LIMIT:-1G}
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 256M
|
||||
cpus: ${HARBOR_DB_CPU_RESERVATION:-0.25}
|
||||
memory: ${HARBOR_DB_MEMORY_RESERVATION:-256M}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
interval: 30s
|
||||
@@ -150,11 +190,11 @@ services:
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.50'
|
||||
memory: 256M
|
||||
cpus: ${HARBOR_REDIS_CPU_LIMIT:-0.50}
|
||||
memory: ${HARBOR_REDIS_MEMORY_LIMIT:-256M}
|
||||
reservations:
|
||||
cpus: '0.10'
|
||||
memory: 64M
|
||||
cpus: ${HARBOR_REDIS_CPU_RESERVATION:-0.10}
|
||||
memory: ${HARBOR_REDIS_MEMORY_RESERVATION:-64M}
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
|
||||
Reference in New Issue
Block a user