diff --git a/services/registry/docker-compose.yml.j2 b/services/registry/docker-compose.yml.j2 index ab657714..1c93d3d4 100644 --- a/services/registry/docker-compose.yml.j2 +++ b/services/registry/docker-compose.yml.j2 @@ -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: @@ -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 diff --git a/services/registry/template.env b/services/registry/template.env index 8f735ae6..a287737b 100644 --- a/services/registry/template.env +++ b/services/registry/template.env @@ -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} @@ -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}