Skip to content

Mariadb

Description / nameInput element
Container Registry
Container Configuration Root Path
Timezone
User ID
Group ID
Mariadb Host Port
Mariadb /config Path

Build Status Last Commit

Version Tags

Tag Description Best For
latest Upstream Binary. Downloads the official release. Most users. Matches Linux Docker behavior.
pkg FreeBSD Port. Installs from Quarterly ports. Stability. Uses system libraries.
pkg-latest FreeBSD Port. Installs from Latest ports. Bleeding edge system packages.

Prerequisites

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

Deployment

services:
  mariadb:
    image: ghcr.io/daemonless/mariadb:latest
    container_name: mariadb
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=UTC
      - MYSQL_ROOT_PASSWORD=changeme
      - MYSQL_DATABASE=mydb
      - MYSQL_USER=myuser
      - MYSQL_PASSWORD=mypassword
    volumes:
      - /path/to/containers/mariadb:/config
    ports:
      - 3306:3306
    restart: unless-stopped
podman run -d --name mariadb \
  -p 3306:3306 \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=UTC \
  -e MYSQL_ROOT_PASSWORD=changeme \
  -e MYSQL_DATABASE=mydb \
  -e MYSQL_USER=myuser \
  -e MYSQL_PASSWORD=mypassword \
  -v /path/to/containers/mariadb:/config \ 
  ghcr.io/daemonless/mariadb:latest
- name: Deploy mariadb
  containers.podman.podman_container:
    name: mariadb
    image: ghcr.io/daemonless/mariadb:latest
    state: started
    restart_policy: always
    env:
      PUID: "1000"
      PGID: "1000"
      TZ: "UTC"
      MYSQL_ROOT_PASSWORD: "changeme"
      MYSQL_DATABASE: "mydb"
      MYSQL_USER: "myuser"
      MYSQL_PASSWORD: "mypassword"
    ports:
      - "3306:3306"
    volumes:
      - "/path/to/containers/mariadb:/config"

Access the Web UI at: http://localhost:3306

Interactive Configuration

Parameters

Environment Variables

Variable Default Description
PUID 1000
PGID 1000
TZ Etc/UTC
MYSQL_ROOT_PASSWORD changeme
MYSQL_DATABASE mydb
MYSQL_USER myuser
MYSQL_PASSWORD mypassword

Volumes

Path Description
/config

Ports

Port Protocol Description
3306 TCP

Implementation Details

  • User: bsd (UID/GID set via PUID/PGID). Defaults to 1000:1000.
  • Base: Built on ghcr.io/daemonless/base (FreeBSD 15.0).

Website Source Code


Need help? Join our Discord community.