Compare commits
12 Commits
9dc42de818
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| d793a800ae | |||
| d53aab56df | |||
| 7ead84ba6b | |||
| 644ee7b262 | |||
| b23846cbcf | |||
| fbd72c7748 | |||
| 893f5b50ef | |||
| c364c6da30 | |||
| 36c854bdf9 | |||
| 85ffa579e4 | |||
| 5fbbd16462 | |||
| 8e8489060c |
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM registry:2
|
||||
|
||||
# Use Alpine's apk package manager to install apache2-utils
|
||||
RUN apk --no-cache add apache2-utils
|
||||
|
||||
# Create config directory
|
||||
RUN mkdir -p /etc/docker/registry
|
||||
|
||||
# Create config file with proper YAML formatting
|
||||
RUN printf "version: 0.1\nstorage:\n filesystem:\n rootdirectory: /var/lib/registry\nhttp:\n addr: :5000\n" > /etc/docker/registry/config.yml
|
||||
18
config.yml
Normal file
18
config.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
version: 0.1
|
||||
log:
|
||||
fields:
|
||||
service: registry
|
||||
storage:
|
||||
cache:
|
||||
blobdescriptor: inmemory
|
||||
filesystem:
|
||||
rootdirectory: /var/lib/registry
|
||||
http:
|
||||
addr: :5000
|
||||
headers:
|
||||
X-Content-Type-Options: [nosniff]
|
||||
health:
|
||||
storagedriver:
|
||||
enabled: true
|
||||
interval: 10s
|
||||
threshold: 3
|
||||
@@ -2,7 +2,7 @@ version: '3.8'
|
||||
|
||||
services:
|
||||
registry:
|
||||
image: registry:2
|
||||
build: .
|
||||
container_name: registry
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
@@ -11,6 +11,7 @@ services:
|
||||
- registry-data:/var/lib/registry
|
||||
networks:
|
||||
- registry-network
|
||||
command: ["/etc/docker/registry/config.yml"]
|
||||
|
||||
networks:
|
||||
registry-network:
|
||||
|
||||
Reference in New Issue
Block a user