xrp
This commit is contained in:
13
.env.example
13
.env.example
@@ -7,16 +7,9 @@ REGISTRY_DATA_PATH=./data
|
|||||||
REGISTRY_LOG_LEVEL=info
|
REGISTRY_LOG_LEVEL=info
|
||||||
REGISTRY_DELETE_ENABLED=true
|
REGISTRY_DELETE_ENABLED=true
|
||||||
|
|
||||||
# Authentication (optional)
|
# Note: Authentication and TLS are disabled by default
|
||||||
REGISTRY_AUTH_ENABLED=false
|
# To enable them, you'll need to mount custom config.yml
|
||||||
REGISTRY_AUTH_PATH=./auth
|
# See README.md for advanced configuration
|
||||||
REGISTRY_AUTH_REALM=Registry Realm
|
|
||||||
|
|
||||||
# TLS/SSL (optional)
|
|
||||||
REGISTRY_SECURED=false
|
|
||||||
REGISTRY_TLS_CERT_PATH=/certs/server.crt
|
|
||||||
REGISTRY_TLS_KEY_PATH=/certs/server.key
|
|
||||||
REGISTRY_TLS_PATH=./certs
|
|
||||||
|
|
||||||
# UI Configuration
|
# UI Configuration
|
||||||
REGISTRY_TITLE=Docker Registry
|
REGISTRY_TITLE=Docker Registry
|
||||||
|
|||||||
51
README.md
51
README.md
@@ -38,10 +38,18 @@ In Coolify, set these environment variables as needed:
|
|||||||
- `REGISTRY_DELETE_ENABLED`: Allow image deletion (true/false)
|
- `REGISTRY_DELETE_ENABLED`: Allow image deletion (true/false)
|
||||||
|
|
||||||
### Security (Optional)
|
### Security (Optional)
|
||||||
- `REGISTRY_AUTH_ENABLED`: Enable authentication (true/false)
|
For authentication and TLS, mount a custom `config.yml` file:
|
||||||
- `REGISTRY_SECURED`: Enable HTTPS (true/false)
|
```yaml
|
||||||
- `REGISTRY_TLS_CERT_PATH`: Path to TLS certificate
|
version: 0.1
|
||||||
- `REGISTRY_TLS_KEY_PATH`: Path to TLS private key
|
auth:
|
||||||
|
htpasswd:
|
||||||
|
realm: basic-realm
|
||||||
|
path: /auth/htpasswd
|
||||||
|
http:
|
||||||
|
tls:
|
||||||
|
certificate: /certs/server.crt
|
||||||
|
key: /certs/server.key
|
||||||
|
```
|
||||||
|
|
||||||
### UI Settings
|
### UI Settings
|
||||||
- `DELETE_IMAGES`: Allow deletion via UI (true/false)
|
- `DELETE_IMAGES`: Allow deletion via UI (true/false)
|
||||||
@@ -66,25 +74,30 @@ docker pull your-domain:5000/myimage
|
|||||||
curl http://your-domain:5000/v2/_catalog
|
curl http://your-domain:5000/v2/_catalog
|
||||||
```
|
```
|
||||||
|
|
||||||
## Authentication (Optional)
|
## Advanced Configuration
|
||||||
|
|
||||||
To enable basic authentication:
|
For authentication, TLS, or other advanced features:
|
||||||
|
|
||||||
1. Set `REGISTRY_AUTH_ENABLED=true`
|
1. Create a custom `config.yml` file
|
||||||
2. Create htpasswd file:
|
2. Mount it to `/etc/docker/registry/config.yml`
|
||||||
```bash
|
3. Reference Docker Registry documentation for all options
|
||||||
mkdir -p auth
|
|
||||||
docker run --rm -it httpd:alpine htpasswd -Bbn user password > auth/htpasswd
|
Example with auth and TLS:
|
||||||
|
```yaml
|
||||||
|
version: 0.1
|
||||||
|
auth:
|
||||||
|
htpasswd:
|
||||||
|
realm: basic-realm
|
||||||
|
path: /auth/htpasswd
|
||||||
|
http:
|
||||||
|
tls:
|
||||||
|
certificate: /certs/server.crt
|
||||||
|
key: /certs/server.key
|
||||||
|
storage:
|
||||||
|
delete:
|
||||||
|
enabled: true
|
||||||
```
|
```
|
||||||
|
|
||||||
## TLS/SSL (Optional)
|
|
||||||
|
|
||||||
To enable HTTPS:
|
|
||||||
|
|
||||||
1. Set `REGISTRY_SECURED=true`
|
|
||||||
2. Place certificates in `certs/` directory
|
|
||||||
3. Set `REGISTRY_TLS_CERT_PATH` and `REGISTRY_TLS_KEY_PATH`
|
|
||||||
|
|
||||||
## Resource Usage
|
## Resource Usage
|
||||||
|
|
||||||
- **RAM**: ~100-200MB total
|
- **RAM**: ~100-200MB total
|
||||||
|
|||||||
@@ -9,17 +9,10 @@ services:
|
|||||||
- "5000"
|
- "5000"
|
||||||
environment:
|
environment:
|
||||||
- REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=${REGISTRY_STORAGE_PATH:-/var/lib/registry}
|
- REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=${REGISTRY_STORAGE_PATH:-/var/lib/registry}
|
||||||
- REGISTRY_AUTH=${REGISTRY_AUTH_ENABLED:-false}
|
|
||||||
- REGISTRY_AUTH_HTPASSWD_PATH=${REGISTRY_AUTH_PATH:-/auth/htpasswd}
|
|
||||||
- REGISTRY_AUTH_HTPASSWD_REALM=${REGISTRY_AUTH_REALM:-Registry Realm}
|
|
||||||
- REGISTRY_HTTP_TLS_CERTIFICATE=${REGISTRY_TLS_CERT_PATH:-}
|
|
||||||
- REGISTRY_HTTP_TLS_KEY=${REGISTRY_TLS_KEY_PATH:-}
|
|
||||||
- REGISTRY_LOG_LEVEL=${REGISTRY_LOG_LEVEL:-info}
|
- REGISTRY_LOG_LEVEL=${REGISTRY_LOG_LEVEL:-info}
|
||||||
- REGISTRY_STORAGE_DELETE_ENABLED=${REGISTRY_DELETE_ENABLED:-true}
|
- REGISTRY_STORAGE_DELETE_ENABLED=${REGISTRY_DELETE_ENABLED:-true}
|
||||||
volumes:
|
volumes:
|
||||||
- ${REGISTRY_DATA_PATH:-./data}:/var/lib/registry
|
- ${REGISTRY_DATA_PATH:-./data}:/var/lib/registry
|
||||||
- ${REGISTRY_AUTH_PATH:-./auth}:/auth
|
|
||||||
- ${REGISTRY_TLS_PATH:-./certs}:/certs
|
|
||||||
networks:
|
networks:
|
||||||
- registry-network
|
- registry-network
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user