summaryrefslogtreecommitdiffstats
path: root/recipes-containers/container-registry/files/container-registry-dev.yml
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/container-registry/files/container-registry-dev.yml')
-rw-r--r--recipes-containers/container-registry/files/container-registry-dev.yml61
1 files changed, 61 insertions, 0 deletions
diff --git a/recipes-containers/container-registry/files/container-registry-dev.yml b/recipes-containers/container-registry/files/container-registry-dev.yml
new file mode 100644
index 00000000..ed0a7c88
--- /dev/null
+++ b/recipes-containers/container-registry/files/container-registry-dev.yml
@@ -0,0 +1,61 @@
1# Container Registry Development Configuration
2# ============================================
3#
4# This is a simple configuration for running a local container registry
5# for development purposes. It uses filesystem storage and listens on
6# port 5000 without TLS.
7#
8# Usage:
9# oe-run-native docker-distribution-native registry serve \
10# /path/to/container-registry-dev.yml
11#
12# Or with explicit paths:
13# /path/to/sysroot-native/usr/sbin/registry serve \
14# /path/to/container-registry-dev.yml
15#
16# For production, consider:
17# - Enabling TLS
18# - Adding authentication
19# - Using cloud storage (S3, GCS, Azure)
20# - Setting up garbage collection
21#
22# See: https://distribution.github.io/distribution/about/configuration/
23
24version: 0.1
25
26log:
27 level: info
28 formatter: text
29 fields:
30 service: container-registry
31
32storage:
33 filesystem:
34 # Storage directory - override with REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY env var
35 rootdirectory: /tmp/container-registry
36 # Don't redirect to external storage
37 redirect:
38 disable: true
39 # Maintenance settings
40 maintenance:
41 uploadpurging:
42 enabled: true
43 age: 168h # 1 week
44 interval: 24h
45 dryrun: false
46
47http:
48 addr: :5000
49 headers:
50 X-Content-Type-Options: [nosniff]
51 # For development - allow HTTP. In production, use TLS.
52 # tls:
53 # certificate: /path/to/cert.pem
54 # key: /path/to/key.pem
55
56# Health check endpoint
57health:
58 storagedriver:
59 enabled: true
60 interval: 10s
61 threshold: 3