adawale
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
# Copy this file to .env and customize for your environment
|
# Copy this file to .env and customize for your environment
|
||||||
|
|
||||||
# Registry Configuration
|
# Registry Configuration
|
||||||
REGISTRY_PORT=5000
|
|
||||||
REGISTRY_STORAGE_PATH=/var/lib/registry
|
REGISTRY_STORAGE_PATH=/var/lib/registry
|
||||||
REGISTRY_DATA_PATH=./data
|
REGISTRY_DATA_PATH=./data
|
||||||
REGISTRY_LOG_LEVEL=info
|
REGISTRY_LOG_LEVEL=info
|
||||||
@@ -20,7 +19,6 @@ REGISTRY_TLS_KEY_PATH=/certs/server.key
|
|||||||
REGISTRY_TLS_PATH=./certs
|
REGISTRY_TLS_PATH=./certs
|
||||||
|
|
||||||
# UI Configuration
|
# UI Configuration
|
||||||
UI_PORT=8080
|
|
||||||
REGISTRY_TITLE=Docker Registry
|
REGISTRY_TITLE=Docker Registry
|
||||||
REGISTRY_URL=http://registry:5000
|
REGISTRY_URL=http://registry:5000
|
||||||
SINGLE_REGISTRY=true
|
SINGLE_REGISTRY=true
|
||||||
|
|||||||
14
README.md
14
README.md
@@ -22,16 +22,14 @@ docker-compose up -d
|
|||||||
```
|
```
|
||||||
|
|
||||||
3. Access:
|
3. Access:
|
||||||
- Registry API: http://localhost:5000
|
- Registry API: http://your-domain:5000
|
||||||
- Web UI: http://localhost:8080
|
- Web UI: http://your-domain
|
||||||
|
|
||||||
## Coolify Deployment
|
## Coolify Deployment
|
||||||
|
|
||||||
In Coolify, set these environment variables as needed:
|
In Coolify, set these environment variables as needed:
|
||||||
|
|
||||||
### Basic Configuration
|
### Basic Configuration
|
||||||
- `REGISTRY_PORT`: Registry port (default: 5000)
|
|
||||||
- `UI_PORT`: UI port (default: 8080)
|
|
||||||
- `REGISTRY_TITLE`: Registry title for UI
|
- `REGISTRY_TITLE`: Registry title for UI
|
||||||
- `REGISTRY_URL`: Internal registry URL
|
- `REGISTRY_URL`: Internal registry URL
|
||||||
|
|
||||||
@@ -54,18 +52,18 @@ In Coolify, set these environment variables as needed:
|
|||||||
|
|
||||||
### Push an image
|
### Push an image
|
||||||
```bash
|
```bash
|
||||||
docker tag myimage localhost:5000/myimage
|
docker tag myimage your-domain:5000/myimage
|
||||||
docker push localhost:5000/myimage
|
docker push your-domain:5000/myimage
|
||||||
```
|
```
|
||||||
|
|
||||||
### Pull an image
|
### Pull an image
|
||||||
```bash
|
```bash
|
||||||
docker pull localhost:5000/myimage
|
docker pull your-domain:5000/myimage
|
||||||
```
|
```
|
||||||
|
|
||||||
### List images
|
### List images
|
||||||
```bash
|
```bash
|
||||||
curl http://localhost:5000/v2/_catalog
|
curl http://your-domain:5000/v2/_catalog
|
||||||
```
|
```
|
||||||
|
|
||||||
## Authentication (Optional)
|
## Authentication (Optional)
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ services:
|
|||||||
image: registry:2
|
image: registry:2
|
||||||
container_name: registry
|
container_name: registry
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
expose:
|
||||||
- "${REGISTRY_PORT:-5000}: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=${REGISTRY_AUTH_ENABLED:-false}
|
||||||
@@ -27,8 +27,8 @@ services:
|
|||||||
image: joxit/docker-registry-ui:latest
|
image: joxit/docker-registry-ui:latest
|
||||||
container_name: registry-ui
|
container_name: registry-ui
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
expose:
|
||||||
- "${UI_PORT:-8080}:80"
|
- "80"
|
||||||
environment:
|
environment:
|
||||||
- SINGLE_REGISTRY=${SINGLE_REGISTRY:-true}
|
- SINGLE_REGISTRY=${SINGLE_REGISTRY:-true}
|
||||||
- REGISTRY_TITLE=${REGISTRY_TITLE:-Docker Registry}
|
- REGISTRY_TITLE=${REGISTRY_TITLE:-Docker Registry}
|
||||||
|
|||||||
8
setup.sh
8
setup.sh
@@ -23,11 +23,11 @@ docker-compose up -d
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "✅ Registry is running!"
|
echo "✅ Registry is running!"
|
||||||
echo "📊 Web UI: http://localhost:8080"
|
echo "📊 Web UI: http://your-domain"
|
||||||
echo "🔌 Registry API: http://localhost:5000"
|
echo "🔌 Registry API: http://your-domain:5000"
|
||||||
echo ""
|
echo ""
|
||||||
echo "💡 To push an image:"
|
echo "💡 To push an image:"
|
||||||
echo " docker tag myimage localhost:5000/myimage"
|
echo " docker tag myimage your-domain:5000/myimage"
|
||||||
echo " docker push localhost:5000/myimage"
|
echo " docker push your-domain:5000/myimage"
|
||||||
echo ""
|
echo ""
|
||||||
echo "📝 Edit .env file to customize configuration"
|
echo "📝 Edit .env file to customize configuration"
|
||||||
Reference in New Issue
Block a user