Redis key-value store on FreeBSD.
| Port | 6379 |
| Registry | ghcr.io/daemonless/redis |
| Source | https://github.com/redis/redis |
| Website | https://redis.io/ |
| Tag | Description | Best For |
|---|---|---|
8.8 / 8.8-pkg-latest / latest / pkg / pkg-latest |
FreeBSD Latest. Rolling package updates. | Staying current. |
6.2 / 6.2-pkg-latest |
FreeBSD Latest. Rolling package updates. | Staying current. |
7.2 / 7.2-pkg-latest |
FreeBSD Latest. Rolling package updates. | Staying current. |
7.4 / 7.4-pkg-latest |
FreeBSD Latest. Rolling package updates. | Staying current. |
8.0 / 8.0-pkg-latest |
FreeBSD Latest. Rolling package updates. | Staying current. |
8.2 / 8.2-pkg-latest |
FreeBSD Latest. Rolling package updates. | Staying current. |
8.4 / 8.4-pkg-latest |
FreeBSD Latest. Rolling package updates. | Staying current. |
8.6 / 8.6-pkg-latest |
FreeBSD Latest. Rolling package updates. | Staying current. |
Before deploying, ensure your host environment is ready. See the Quick Start Guide for host setup instructions.
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"
# always (not unless-stopped) so FreeBSD's podman rc.d auto-starts it at boot
restart: alwaysSave as compose.yaml, then run podman-compose up -d.
.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}
Save the files above, then run appjail-director up.
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 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:latestSave as run.sh, then run sh run.sh.
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 redisSave as run.sh, then run sh run.sh.
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.
Warning
Bastille's OCI support is experimental. It requires buildah, shares the host network stack (inherit), and persists image-declared volumes under --data-path.
services:
redis:
image: "ghcr.io/daemonless/redis:latest"
container_name: redis
network_mode: host # jail shares host networking
environment:
- PUID=1000
- PGID=1000
- TZ=UTCSave as podman-compose.yml, then run bastille up. Or via CLI:
bastille create -O \
--env PUID=1000 \
--env PGID=1000 \
--env TZ=UTC \
--data-path /path/to/containers/redis \
redis ghcr.io/daemonless/redis:latest inherit- 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"Save as redis-deploy.yaml, then run ansible-playbook redis-deploy.yaml.
| 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 |
| Path | Description |
|---|---|
/config |
Data and configuration directory |
| Port | Protocol | Description |
|---|---|---|
6379 |
TCP | Redis port |
Architectures: amd64, aarch64
User: bsd (UID/GID via PUID/PGID, defaults to 1000:1000)
Base: FreeBSD 15.1
Need help? Join our Discord community.