blumeops/containers/authentik-redis/default.nix
Erich Blume 353a141181 Remove tag = "latest" from nix container definitions
The tag field in buildLayeredImage is optional and only affects the
local docker-archive output. The CI workflow tags with immutable
SHA-based tags via skopeo, so "latest" is misleading noise.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 13:19:23 -07:00

29 lines
776 B
Nix

# Nix-built Redis for Authentik
# Attached service: cache/broker (sessions, Celery task queue, caching)
# Uses Redis from nixpkgs, packaged with dockerTools.buildLayeredImage
#
# The version assertion ensures nix-build fails if a flake.lock update
# changes the Redis version — forcing an explicit version acknowledgment
# here and in service-versions.yaml (enforced by container-version-check).
{ pkgs ? import <nixpkgs> { } }:
let
version = "8.2.3";
in
assert pkgs.redis.version == version;
pkgs.dockerTools.buildLayeredImage {
name = "blumeops/authentik-redis";
contents = [
pkgs.redis
];
config = {
Entrypoint = [ "${pkgs.redis}/bin/redis-server" ];
Cmd = [ "--protected-mode" "no" ];
ExposedPorts = {
"6379/tcp" = { };
};
};
}