Mariadb
| Description / name | Input element |
|---|---|
| Container Registry | |
| Container Configuration Root Path | |
| Timezone | |
| User ID | |
| Group ID | |
| Mariadb Host Port | |
| Mariadb /config Path |
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
- 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 to1000:1000. - Base: Built on
ghcr.io/daemonless/base(FreeBSD 15.0).
Need help? Join our Discord community.