Set up MariaDB in TrueNAS Scale

Container Images

  • Image repository: linuxserver/mariadb

Container Environment Variables

MYSQL_ROOT_PASSWORD<Set root password>
MYSQL_TCP_PORT<Set port, default is 3306>

Networking

  • Host Interface: Select main interface
  • Use static IP

Port Forwarding

  • Container Port: same as MYSQL_TCP_PORT
  • Node Port: <Set port to actually access the database>
  • Protocol: TCP

Storage

  • Select a host path dataset and mount path should be /config/databases

Resource Limits

  • CPU Limit: 1000m (1 core)
  • Memory Limit: 1Gi

These are baseline numbers, adjust as necessary.

Leave a Reply

Your email address will not be published. Required fields are marked *