Skip to content

Commit

Permalink
run gisquick over http
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Nov 25, 2017
1 parent fea4704 commit 80823d8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions installation/docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,34 @@ And up-to-date container can be afterwards combined as described above.
Useful tips
-----------

Access running Docker containers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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
Run Gisquick over HTTP
^^^^^^^^^^^^^^^^^^^^^^

Download `gisquick.template <../_static/docker/gisquick.template>`_
into directory where :file:`docker-compose.yml` lives. Change NGINX service
configuration in order to:

* mount volume with custom Gisquick template (line ``37``)

.. code-block:: yaml
- ./gisquick.template:/etc/nginx/conf.d/gisquick.template
* change port forwaring (line ``41``) to

.. code-block:: yaml
- "8000:80"
After restarting Gisquick instance, the application will be accessible
on http://localhost:8000.

0 comments on commit 80823d8

Please sign in to comment.