Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

registries: Add log level env #840

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}
Loading