feat: add ${GLOBAL_REGISTRY} for change docker image

This commit is contained in:
Sun-ZhenXing
2025-11-05 20:26:14 +08:00
parent 373cc3cdd6
commit a65a009640
127 changed files with 203 additions and 204 deletions

View File

@@ -14,7 +14,7 @@ x-defaults: &defaults
services:
service-name:
<<: *defaults
image: image:${VERSION:-latest}
image: ${GLOBAL_REGISTRY:-}image:${VERSION:-latest}
ports:
- "${PORT_OVERRIDE:-8080}:8080"
volumes:
@@ -31,11 +31,11 @@ services:
deploy:
resources:
limits:
cpus: '1.00'
memory: 512M
cpus: ${SERVICE_NAME_CPU_LIMIT:-1.00}
memory: ${SERVICE_NAME_MEMORY_LIMIT:-512M}
reservations:
cpus: '0.25'
memory: 128M
cpus: ${SERVICE_NAME_CPU_RESERVATION:-0.25}
memory: ${SERVICE_NAME_MEMORY_RESERVATION:-128M}
volumes:
service_data: