image-factory/hack/dev/compose.yaml
Noel Georgi f0150c419d
feat: use rootless Image Factory
Pull in new Talos imager to support rootless IF.

Part of: https://github.com/siderolabs/talos/issues/12146/

Signed-off-by: Noel Georgi <git@frezbo.dev>
2025-12-26 15:48:23 +05:30

45 lines
1.2 KiB
YAML

configs:
if_config:
file: config.yaml
if_signing_key:
file: ../../_out/cache-signing-key.key
volumes:
if-registry-ghcr-io-data:
if-registry-local-data:
services:
registry.local:
image: ghcr.io/distribution/distribution:edge
volumes:
- if-registry-local-data:/var/lib/registry
environment:
- OTEL_TRACES_EXPORTER=none
- REGISTRY_LOG_LEVEL=info
- REGISTRY_STORAGE_DELETE_ENABLED=true
restart: unless-stopped
registry.ghcr.io:
image: registry:2
volumes:
- if-registry-ghcr-io-data:/var/lib/registry
environment:
- REGISTRY_PROXY_REMOTEURL=https://ghcr.io
- OTEL_TRACES_EXPORTER=none
- REGISTRY_LOG_LEVEL=info
- REGISTRY_STORAGE_DELETE_ENABLED=true
restart: unless-stopped
image-factory:
image: ${IMAGE_FACTORY_IMAGE?}
command:
- /image-factory
- --config
- /etc/image-factory/config.yaml
depends_on:
- registry.local
- registry.ghcr.io
ports:
- "8080:8080"
configs:
- source: if_config
target: /etc/image-factory/config.yaml
- source: if_signing_key
target: /etc/image-factory/cache-signing-key.key