Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
54 lines (49 loc) · 1.99 KB
/
Copy pathcompose.yaml
File metadata and controls
54 lines (49 loc) · 1.99 KB
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
services:
registry:
image: bytebardorg/simplecontainerregistry:latest
restart: unless-stopped
stop_grace_period: 20s
environment:
SCR_BOOTSTRAP_ADMIN_USERNAME: "${SCR_BOOTSTRAP_ADMIN_USERNAME:-admin}"
SCR_BOOTSTRAP_ADMIN_PASSWORD: "${SCR_BOOTSTRAP_ADMIN_PASSWORD:?SCR_BOOTSTRAP_ADMIN_PASSWORD must be set}"
ports:
- "${SCR_BIND_ADDRESS:-127.0.0.1}:${SCR_PORT:-5000}:5000"
volumes:
- registry-data:/var/lib/scr
configs:
- source: registry-config
target: /etc/scr/config.yaml
volumes:
registry-data:
configs:
registry-config:
content: |
# The container binds 0.0.0.0, so SCR_PUBLIC_URL must be set to the public
# https origin. To serve plain HTTP instead, set SCR_ALLOW_INSECURE_HTTP=true.
http:
address: "${SCR_HTTP_ADDRESS:-0.0.0.0}"
port: ${SCR_HTTP_PORT:-5000}
secureCookies: ${SCR_SECURE_COOKIES:-true}
allowInsecureHTTP: ${SCR_ALLOW_INSECURE_HTTP:-false}
publicURL: "${SCR_PUBLIC_URL:-}"
trustForwardedHeaders: ${SCR_TRUST_FORWARDED_HEADERS:-false}
trustedProxyCIDRs: [${SCR_TRUSTED_PROXY_CIDRS:-}]
readTimeout: "${SCR_HTTP_READ_TIMEOUT:-30m}"
writeTimeout: "${SCR_HTTP_WRITE_TIMEOUT:-30m}"
idleTimeout: "${SCR_HTTP_IDLE_TIMEOUT:-2m}"
maxHeaderBytes: ${SCR_HTTP_MAX_HEADER_BYTES:-1048576}
storage:
rootDirectory: "${SCR_STORAGE_ROOT_DIRECTORY:-/var/lib/scr/registry}"
gc: ${SCR_STORAGE_GC:-true}
gcDelay: "${SCR_STORAGE_GC_DELAY:-1h}"
gcInterval: "${SCR_STORAGE_GC_INTERVAL:-24h}"
maxUploadBytes: ${SCR_STORAGE_MAX_UPLOAD_BYTES:-10737418240}
maxUploadSessions: ${SCR_STORAGE_MAX_UPLOAD_SESSIONS:-100}
uploadTTL: "${SCR_STORAGE_UPLOAD_TTL:-24h}"
database:
driver: "sqlite"
dsn: "${SCR_DATABASE_DSN:-/var/lib/scr/scr.db}"
auth:
issuer: "${SCR_AUTH_ISSUER:-scr}"
service: "${SCR_AUTH_SERVICE:-scr}"
tokenTTL: "${SCR_AUTH_TOKEN_TTL:-10m}"