diff --git a/CI_CD_PIPELINE_SETUP_GUIDE.md b/CI_CD_PIPELINE_SETUP_GUIDE.md index 566f8a6..c1a55ff 100644 --- a/CI_CD_PIPELINE_SETUP_GUIDE.md +++ b/CI_CD_PIPELINE_SETUP_GUIDE.md @@ -546,7 +546,7 @@ docker compose up -d exit ``` -**Important**: The registry uses standard authentication, but nginx provides intelligent routing to enable public read access for specific operations (manifests, blobs, tags) while requiring authentication for write operations (push, delete). This implements the "public read, authenticated write" model through nginx configuration. +**Important**: The registry uses standard authentication, but nginx provides intelligent routing to enable public read access for specific operations (manifests, blobs, tags) while requiring authentication for write operations (push, delete). This implements the "public read, authenticated write" model through nginx configuration. The health check is performed on nginx (port 8080) since it handles the public access logic. #### 5.7 Test Registry Setup diff --git a/registry/docker-compose.yml b/registry/docker-compose.yml index 7f7f070..ef153fd 100644 --- a/registry/docker-compose.yml +++ b/registry/docker-compose.yml @@ -14,12 +14,6 @@ services: restart: unless-stopped networks: - registry_network - healthcheck: - test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "https://localhost:5000/v2/", "--no-check-certificate"] - interval: 30s - timeout: 10s - retries: 3 - start_period: 40s registry-ui: image: joxit/docker-registry-ui:latest @@ -48,6 +42,12 @@ services: restart: unless-stopped networks: - registry_network + healthcheck: + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "https://localhost:443/v2/_catalog", "--no-check-certificate"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 40s volumes: registry_data: