Skip to content

Commit

Permalink
registries: Add log level env (#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
YuryHrytsuk authored Oct 16, 2024
1 parent a89fa8f commit a3977a4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion services/registry/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ services:
REGISTRY_HTTP_DEBUG_ADDR: ":5001"
REGISTRY_HTTP_DEBUG_PROMETHEUS_ENABLED: "true"
REGISTRY_HTTP_DEBUG_PROMETHEUS_PATH: "/metrics"
#REGISTRY_LOGLEVEL: debug
# Logs
REGISTRY_LOG_LEVEL: ${REGISTRY_LOG_LEVEL}
REGISTRY_LOG_ACCESSLOG_DISABLED: ${REGISTRY_LOG_ACCESSLOG_DISABLED}
# set to true if using self-signed certificates
UPDATE_CERTIFICATES: "false"
networks:
Expand Down Expand Up @@ -91,6 +93,9 @@ services:
REGISTRY_HTTP_DEBUG_ADDR: ":5001"
REGISTRY_HTTP_DEBUG_PROMETHEUS_ENABLED: "true"
REGISTRY_HTTP_DEBUG_PROMETHEUS_PATH: "/metrics"
# Logs
REGISTRY_LOG_LEVEL: ${REGISTRY_PULL_THROUGH_CACHE_LOG_LEVEL}
REGISTRY_LOG_ACCESSLOG_DISABLED: ${REGISTRY_PULL_THROUGH_CACHE_LOG_ACCESSLOG_DISABLED}
ports:
- mode: host
target: 5000
Expand Down
6 changes: 6 additions & 0 deletions services/registry/template.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ OPS_REGISTRY_REPLICAS=${OPS_REGISTRY_REPLICAS}

REGISTRY_DOMAIN=${REGISTRY_DOMAIN}

REGISTRY_LOG_LEVEL=${REGISTRY_LOG_LEVEL}
REGISTRY_LOG_ACCESSLOG_DISABLED=${REGISTRY_LOG_ACCESSLOG_DISABLED}

REGISTRY_HTTP_SECRET=${REGISTRY_HTTP_SECRET}
REGISTRY_S3_ACCESS_KEY=${REGISTRY_S3_ACCESS_KEY}
REGISTRY_S3_SECRET_KEY=${REGISTRY_S3_SECRET_KEY}
Expand All @@ -22,5 +25,8 @@ REGISTRY_PULL_THROUGH_CACHE_ENABLED=${REGISTRY_PULL_THROUGH_CACHE_ENABLED}
REGISTRY_PULL_THROUGH_CACHE_HTTP_SECRET=${REGISTRY_PULL_THROUGH_CACHE_HTTP_SECRET}
REGISTRY_PULL_THROUGH_CACHE_S3_BUCKET=${REGISTRY_PULL_THROUGH_CACHE_S3_BUCKET}

REGISTRY_PULL_THROUGH_CACHE_LOG_LEVEL=${REGISTRY_PULL_THROUGH_CACHE_LOG_LEVEL}
REGISTRY_PULL_THROUGH_CACHE_LOG_ACCESSLOG_DISABLED=${REGISTRY_PULL_THROUGH_CACHE_LOG_ACCESSLOG_DISABLED}

DOCKER_HUB_LOGIN=${DOCKER_HUB_LOGIN}
DOCKER_HUB_PASSWORD=${DOCKER_HUB_PASSWORD}

0 comments on commit a3977a4

Please sign in to comment.