Installation Localhost ====================== Requirements ^^^^^^^^^^^^ - Ubuntu 20.04 - 4 Cores - 4 GB RAM - at least 30 GB HDD, 50 GB recommended Docker und docker-compose installieren:: apt-get install -y docker.io docker-compose create a folder on the Host Maschine and change to that dir:: mkdir /usr/share/t2core/ Create an Enviroment File ``/usr/share/t2core/.env``:: PWD=./ DOCKER_REGISTRY=docker.io DOCKER_PROJECT=tri2 DOCKER_TAG=latest T2CORE_SECRET_KEY=dosiufzgd89f7gzjd8f7zgjSEFSfesEFEWFgHjk98dfzsj098dzfj T2CORE_DATABASE_PASSWORD=sdlfihsmd9f8zgsDFSDfef8sdzgfsRGD8dzgfsz8df Change the shown ``T2CORE_SECRET_KEY`` and ``T2CORE_DATABASE_PASSWORD`` as this are only the default Values. Create a File ``/usr/share/t2core/docker-compose.yml``: .. literalinclude:: docker-compose.yml .. note:: Database version: the postgres database version must be set to a major version (postgres:12, postgres:13), because database files are not compatible between major versions. Currently this is version 13, installations can be migrated between versions, but this cannot be done automatically. See https://www.postgresql.org/docs/current/upgrading.html and https://github.com/docker-library/postgres/issues/766 to start the server in ``/usr/share/t2core/`` execute the command:: docker-compose up -d after a while the server starts, a admin account ``root`` is generated and its password is written to the container logs once:: docker-compose logs t2_core t2_core_1 | new password of user "root" is: t2_core_1 | t2_core_1 | 5e425930-a8d2-4d71-bfe0-18a6df19c66c .. note:: this is a random generated password. the one shown here will not work on your maschine. with that credential you can login as admin on ``http:///``. if you like to create another admin account:: docker-compose exec t2_core ./manage.py createsuperuser the install is done now if you are able to login and you can proceed to the configuration.