Remove unneeded config.yml file
Some checks are pending
CI/CD Pipeline (Fully Isolated DinD) / Run Tests (DinD) (push) Waiting to run
CI/CD Pipeline (Fully Isolated DinD) / Build and Push Docker Images (DinD) (push) Blocked by required conditions
CI/CD Pipeline (Fully Isolated DinD) / Deploy to Production (push) Blocked by required conditions

This commit is contained in:
continuist 2025-08-15 19:45:21 -04:00
parent 3d660e53cf
commit 7a71084628
3 changed files with 9 additions and 25 deletions

View file

@ -1003,12 +1003,7 @@ docker rmi YOUR_DOMAIN_NAME/APP_NAME/unauthorized:latest
exit exit
``` ```
**Important**: For Option B, you'll also need to update the registry config file to use your domain: **Important**: For Option B, the registry configuration is handled via environment variables in the Docker Compose file, so no additional configuration changes are needed.
```bash
# Update registry config for domain-based setup
sudo sed -i "s/YOUR_ACTUAL_IP_ADDRESS/YOUR_DOMAIN_NAME/g" /opt/APP_NAME/registry/config.yml
```
**Expected behavior**: **Expected behavior**:
- ✅ Push requires authentication with `registry-user` credentials on port 4443 - ✅ Push requires authentication with `registry-user` credentials on port 4443

View file

@ -6,7 +6,7 @@ This folder contains the configuration files for the Docker Registry setup used
- **`docker-compose.registry.yml`**: Docker Compose configuration for the registry and Caddy reverse proxy - **`docker-compose.registry.yml`**: Docker Compose configuration for the registry and Caddy reverse proxy
- **`Caddyfile`**: Caddy configuration for HTTPS and authentication - **`Caddyfile`**: Caddy configuration for HTTPS and authentication
- **`config.yml`**: Docker Registry configuration file - **`docker-registry.service`**: Systemd service file for Docker Registry
- **`README.md`**: This documentation file - **`README.md`**: This documentation file
## Architecture ## Architecture
@ -14,7 +14,7 @@ This folder contains the configuration files for the Docker Registry setup used
The registry setup uses: The registry setup uses:
- **Docker Registry**: Basic registry for storing Docker images - **Docker Registry**: Basic registry for storing Docker images
- **Caddy**: Reverse proxy with automatic HTTPS and authentication - **Caddy**: Reverse proxy with automatic HTTPS and authentication
- **Environment Variables**: For authentication credentials - **Environment Variables**: For authentication credentials and registry configuration
- **Service User**: The registry and Caddy services run as the existing `CI_SERVICE_USER` (not a separate registry user) - **Service User**: The registry and Caddy services run as the existing `CI_SERVICE_USER` (not a separate registry user)
## Authentication Model ## Authentication Model
@ -38,11 +38,12 @@ The registry setup uses:
## Configuration ## Configuration
The setup is configured through: The setup is configured through:
1. **Environment Variables**: Stored in `.env` file (created during setup) 1. **Environment Variables**: Stored in `.env` file (created during setup) for authentication
2. **Caddyfile**: Handles HTTPS and authentication 2. **Docker Compose Environment**: Registry configuration via environment variables
3. **Docker Compose**: Orchestrates the registry and Caddy services 3. **Caddyfile**: Handles HTTPS and authentication
4. **Registry Config**: `config.yml` contains the Docker Registry configuration 4. **Docker Compose**: Orchestrates the registry and Caddy services
5. **User/Permissions**: All files and services are owned and run by `CI_SERVICE_USER` for consistency and security 5. **Systemd Service**: Manages the Docker Registry service lifecycle
6. **User/Permissions**: All files and services are owned and run by `CI_SERVICE_USER` for consistency and security
## Usage ## Usage

View file

@ -1,12 +0,0 @@
version: 0.1
log:
level: debug
storage:
filesystem:
rootdirectory: /var/lib/registry
delete:
enabled: true
http:
addr: :5000
headers:
X-Content-Type-Options: [nosniff]