This is the official git repository for UNA. Refer to Docker Hub page for the actual UNA Docker image.
docker run -e "UNA_DB_HOST=host.docker.internal" -e "UNA_DB_NAME=test" -e "UNA_ADMIN_PWD=5ecret" --add-host=host.docker.internal:host-gateway -d -p 80:80 --name una unaio/una:latest
Above example assumes that UNA is run locally with mysql server installed on the host machine. After the run UNA should be accessible using http://localhost
URL, you can login with admin@example.com
email and 5ecret
password.
UNA_DB_HOST
- MySQL database hostname, default -localhost
UNA_DB_PORT
- MySQL database port, default -3306
UNA_DB_SOCK
- MySQL database sock file path, optionalUNA_DB_NAME
- MySQL database name, requiredUNA_DB_USER
- MySQL database user, default -root
UNA_DB_PWD
- MySQL database user, default -root
UNA_HTTP_HOST
- UNA hostname, if other than80
port is used, then it need to be specified here, for examplelocalhost:8000
, default -localhost
UNA_SITE_TITLE
- new site title, default -UNA
UNA_SITE_EMAIL
- new site email, to send mail from, default -admin@example.com
UNA_ADMIN_USERNAME
- admin username, default -admin
UNA_ADMIN_EMAIL
- admin login email, default -admin@example.com
UNA_ADMIN_PWD
- admin password, default -admin
UNA_KEY
- UNA key, key&secret can be generated on una.io websiteUNA_SECRET
- UNA secretUNA_VERSION
- particular UNA version to install, default - latest versionUNA_ZIP_DOWNLOAD_URL
- custom UNA download URL, in case you need to install modified version, optionalUNA_ZIP_FOLDER
- custom UNA folder inUNA_ZIP_DOWNLOAD_URL
zip to be able to unpack, UNA is aleays installed in root folderUNA_NO_CRONTAB
- don't install crontab, in case of multiple instances, cron should be installed on one instance only, cron is installed by defaultUNA_DB_ENGINE
- MySQL DB engine, please note that some DB engines require custom MySQL server configuration, defaultMYISAM
UNA_AUTO_HOSTNAME
- when this option is set (other than zero) thenUNA_HTTP_HOST
option is ignored and current hostname (where site is requested) is used.