Docker
Docker is an alternative installation method, recommended for experts only. It allows to install several instances of Geotrek-admin on the same serveur, and to install it on other distributions than Ubuntu Linux 18.04.
Installation
Install Docker and Docker Compose, either from your distribution or from upstream packages (cf. https://docs.docker.com/install/)
Download the code from https://github.com/GeotrekCE/Geotrek-admin/releases or checkout it with git from https://github.com/GeotrekCE/Geotrek-admin/
Unzip the tarball
Copy docker/install folder where you want
Edit docker-compose.yml to feed your needs if necessary
Copy .env.dist to .env and edit to feed your needs if necessary
Create user and database, enable PostGIS extension
Run docker-compose run –rm web update.sh
Run docker-compose up
Install NGINX (or equivalent) and add a configuration file (taking inspiration from nginx.conf.in)
Management commands
Replace sudo geotrek …
commands by cd <install directory>; docker-compose run --rm web ./manage.py …
To load minimal data and create an application superuser, run :
docker-compose run --rm web load_data.sh
docker-compose run --rm web ./manage.py createsuperuser