Fără Descriere

Alex Trofimov 84358cc5db 13.0.0 3 ani în urmă
.gitignore 23b9cdd543 Complete rewrite with entry-point 6 ani în urmă
Dockerfile 23b9cdd543 Complete rewrite with entry-point 6 ani în urmă
README.md a1bb69405a Additional params 6 ani în urmă
docker-entrypoint.sh 84358cc5db 13.0.0 3 ani în urmă

README.md

Official UNA Docker repository

This is the official git repository for UNA. Refer to Docker Hub page for the actual UNA Docker image.

How to use this image

docker run -e "UNA_DB_HOST=host.docker.internal" -e "UNA_DB_NAME=test" -e "UNA_ADMIN_PWD=5ecret" -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.

Full list of supported environment variables

  • UNA_DB_HOST - MySQL database hostname, default - localhost
  • UNA_DB_PORT - MySQL database port, default - 3306
  • UNA_DB_SOCK - MySQL database sock file path, optional
  • UNA_DB_NAME - MySQL database name, required
  • UNA_DB_USER - MySQL database user, default - root
  • UNA_DB_PWD - MySQL database user, default - root
  • UNA_HTTP_HOST - UNA hostname, if other than 80 port is used, then it need to be specified here, for example localhost: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 website
  • UNA_SECRET - UNA secret
  • UNA_VERSION - particular UNA version to install, default - latest version
  • UNA_ZIP_DOWNLOAD_URL - custom UNA download URL, in case you need to install modified version, optional
  • UNA_ZIP_FOLDER - custom UNA folder in UNA_ZIP_DOWNLOAD_URL zip to be able to unpack, UNA is aleays installed in root folder
  • UNA_NO_CRONTAB - don't install crontab, in case of multiple instances, cron should be installed on one instance only, cron is installed by default
  • UNA_DB_ENGINE - MySQL DB engine, please note that some DB engines require custom MySQL server configuration, default MYISAM
  • UNA_AUTO_HOSTNAME - when this option is set (other than zero) then UNA_HTTP_HOST option is ignored and current hostname (where site is requested) is used.