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