Skip to content

Latest commit

 

History

History
157 lines (122 loc) · 3.26 KB

File metadata and controls

157 lines (122 loc) · 3.26 KB

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
latest / pkg FreeBSD Quarterly. Uses stable, tested packages. Most users. Matches Linux Docker behavior.
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
      - PGID=1000
      - TZ=UTC
    volumes:
      - "/path/to/containers/redis:/config"
    ports:
      - 6379:6379
    restart: unless-stopped

AppJail Director

.env:

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

appjail-director.yml:

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

Makejail:

ARG tag=latest

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

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

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"

Access at: http://localhost:6379

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.0


Need help? Join our Discord community.