Skip to content

daemonless/redis

Repository files navigation

Redis

Build Status Last Commit

Redis key-value store on FreeBSD.

Port 6379
Registry ghcr.io/daemonless/redis
Source https://github.com/redis/redis
Website https://redis.io/

Version Tags

Tag Description Best For
8.8 / 8.8-pkg-latest / latest / pkg / pkg-latest FreeBSD Latest. Rolling package updates. Newest FreeBSD packages.
6.2 / 6.2-pkg-latest FreeBSD Latest. Rolling package updates. Newest FreeBSD packages.
7.2 / 7.2-pkg-latest FreeBSD Latest. Rolling package updates. Newest FreeBSD packages.
7.4 / 7.4-pkg-latest FreeBSD Latest. Rolling package updates. Newest FreeBSD packages.
8.0 / 8.0-pkg-latest FreeBSD Latest. Rolling package updates. Newest FreeBSD packages.
8.2 / 8.2-pkg-latest FreeBSD Latest. Rolling package updates. Newest FreeBSD packages.
8.4 / 8.4-pkg-latest FreeBSD Latest. Rolling package updates. Newest FreeBSD packages.
8.6 / 8.6-pkg-latest FreeBSD Latest. Rolling package updates. Newest FreeBSD packages.

Prerequisites

Before deploying, ensure your host environment is ready. See the Quick Start Guide for host setup instructions.

Deployment

Podman Compose

services:
  redis:
    image: "ghcr.io/daemonless/redis:latest"
    container_name: redis
    environment:
      - PUID=1000  # User ID for the application process
      - PGID=1000  # Group ID for the application process
      - TZ=UTC  # Timezone for the container
    volumes:
      - "/path/to/containers/redis:/config"
    ports:
      - "6379:6379"
    restart: unless-stopped

AppJail Director

.env:

# .env

DIRECTOR_PROJECT=redis
PUID=1000
PGID=1000
TZ=UTC

appjail-director.yml:

# appjail-director.yml

options:
  - alias:
  - ip4_inherit:
services:
  redis:
    name: redis
    options:
      - container: 'boot args:--pull'
      - expose: '6379:6379 proto:tcp' \
    oci:
      user: root
      environment:
        - PUID: !ENV '${PUID}'
        - PGID: !ENV '${PGID}'
        - TZ: !ENV '${TZ}'
    volumes:
      - redis: /config
volumes:
  redis:
    device: '/path/to/containers/redis'

Makejail:

# Makejail

ARG tag=latest

OPTION overwrite=force
OPTION from=ghcr.io/daemonless/redis:${tag}

Note: Exposing ports in AppJail means that your service can be reached from remote hosts. If that is not your intention, do not expose the ports and communicate with the service using the IPv4 address assigned by the virtual network.

Podman CLI

podman run -d --name redis \
  -p 6379:6379 \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=UTC \
  -v /path/to/containers/redis:/config \
  ghcr.io/daemonless/redis:latest

AppJail

appjail oci run -Pd \
  -o overwrite=force \
  -o container="args:--pull" \
  -o virtualnet=":<random> default" \
  -o nat \
  -o expose="6379:6379 proto:tcp" \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=UTC \
  -o fstab="/path/to/containers/redis /config <pseudofs>" \
  ghcr.io/daemonless/redis:latest redis

Note: Exposing ports in AppJail means that your service can be reached from remote hosts. If that is not your intention, do not expose the ports and communicate with the service using the IPv4 address assigned by the virtual network.

Ansible

- name: Deploy redis
  containers.podman.podman_container:
    name: redis
    image: "ghcr.io/daemonless/redis:latest"
    state: started
    restart_policy: always
    env:
      PUID: "1000"
      PGID: "1000"
      TZ: "UTC"
    ports:
      - "6379:6379"
    volumes:
      - "/path/to/containers/redis:/config"

Parameters

Environment Variables

Variable Default Description
PUID 1000 User ID for the application process
PGID 1000 Group ID for the application process
TZ UTC Timezone for the container

Volumes

Path Description
/config Data and configuration directory

Ports

Port Protocol Description
6379 TCP Redis port

Architectures: amd64 User: bsd (UID/GID via PUID/PGID, defaults to 1000:1000) Base: FreeBSD 15.1


Need help? Join our Discord community.

About

Native FreeBSD OCI container image for Redis

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors