-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gisquick: work on installation section in progress
- Loading branch information
Showing
9 changed files
with
290 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
.. |tip| image:: img/paragraphs/tip.png | ||
.. |tip| image:: ../img/paragraphs/tip.png | ||
:width: 2.5em | ||
.. |att| image:: img/paragraphs/attention.png | ||
.. |att| image:: ../img/paragraphs/attention.png | ||
:width: 2.5em | ||
.. |todo| image:: img/paragraphs/todo.png | ||
.. |todo| image:: ../img/paragraphs/todo.png | ||
:width: 1.5em | ||
.. |see| image:: img/paragraphs/see.png | ||
.. |see| image:: ../img/paragraphs/see.png | ||
:width: 1.5em | ||
.. |note| image:: img/paragraphs/note.png | ||
.. |note| image:: ../img/paragraphs/note.png | ||
:width: 1.5em | ||
.. |imp| image:: img/paragraphs/important.png | ||
.. |imp| image:: ../img/paragraphs/important.png | ||
:width: 1.5em | ||
.. |danger| image:: img/paragraphs/danger.png | ||
.. |danger| image:: ../img/paragraphs/danger.png | ||
:width: 1.5em | ||
.. |problem| image:: img/paragraphs/problem.png | ||
.. |problem| image:: ../img/paragraphs/problem.png | ||
:width: 1em | ||
.. |solution| image:: img/paragraphs/solution.png | ||
.. |solution| image:: ../img/paragraphs/solution.png | ||
:width: 1em |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
Installation using Docker containers | ||
==================================== | ||
|
||
Gisquick application is split into 3 services running in Docker | ||
containers: | ||
|
||
#. **QGIS server** (``gisquick/qgis-server`` image) | ||
#. **Django Application served with Gunicorn** (``gisquick/django`` image) | ||
#. **Nginx Server** (``gisquick/nginx`` image) | ||
|
||
These Docker images can be put together using ``docker-compose`` | ||
command. This command reads configuration file in YAML | ||
language. Example of such confuguration is available in Gisquick | ||
source code (`docker/example.docker-compose.yml | ||
<https://github.com/gislab-npo/gisquick/blob/master/docker/example.docker-compose.yml>`__). Another | ||
example is shown below. | ||
|
||
.. code-block:: yaml | ||
:emphasize-lines: 7 | ||
:linenos: | ||
version: "2" | ||
services: | ||
qgisserver: | ||
restart: always | ||
image: gisquick/qgis-server | ||
volumes: | ||
- ./_data/publish:/publish/:ro | ||
ports: | ||
- "9000:90" | ||
django: | ||
restart: always | ||
image: gisquick/django | ||
links: | ||
- qgisserver | ||
volumes: | ||
- ./_data/media:/var/www/gisquick/media/ | ||
- ./_data/data:/var/www/gisquick/data/ | ||
environment: | ||
- GUNICORN_ERRORLOG=- | ||
- GUNICORN_ACCESSLOG=- | ||
nginx: | ||
restart: unless-stopped | ||
image: gisquick/nginx | ||
links: | ||
- django | ||
volumes_from: | ||
- django:ro | ||
volumes: | ||
- ./_data/etc/letsencrypt/:/etc/letsencrypt/ | ||
ports: | ||
- "433:443" | ||
It is important to set up shared directories mounted by Docker images | ||
as volumes. *QGIS Server* requires setting up :file:`publish` directory | ||
used for published Gisquick projects (see line ``7``). | ||
|
||
Useful tips | ||
----------- | ||
|
||
Example of accessing Bash on ``gisquick/django`` container: | ||
|
||
.. code-block:: bash | ||
export DJANGO_CONTAINER_ID=`docker ps -qf "ancestor=gisquick/django"` | ||
docker exec -it $DJANGO_CONTAINER_ID bash |
Oops, something went wrong.