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 GeotrekCE/Geotrek-admin or checkout it with git from GeotrekCE/Geotrek-admin
Unzip the tarball
Copy
docker-compose-prod.yml
todocker-compose.yml
and edit to feed your needs if necessaryCopy
.env-prod.dist
to.env
and edit to feed your needs if necessaryCreate 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