Skip to content

Commit

Permalink
Put link to docker compose at the top
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandgeider committed Aug 24, 2022
1 parent 467c345 commit 499ca3e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions docs/docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ Note that you need to build from the project's source folder, e.g::
docker build -f extras/docker/demo/Dockerfile --tag wger/demo .


Production
----------

There is a configured docker compose file with all necessary services

https://github.com/wger-project/docker


Demo
----

Expand All @@ -27,6 +35,8 @@ Run a container and start the application::

Then just open http://localhost:8000 and log in as: **admin**, password **adminadmin**

Please note that the database will not be persisted when you update the image


Development
-----------
Expand All @@ -41,7 +51,6 @@ Get the image::
Run a container and start the application::

docker run -ti --name wger.dev --publish 8000:8000 wger/server
(in docker) source ~/venv/bin/activate
(in docker) python manage.py runserver 0.0.0.0:8000

Then just open http://localhost:8000 and log in as: **admin**, password **adminadmin**
Expand All @@ -59,8 +68,3 @@ your host machine and use docker only to serve it. Then do this::
It will mount the local path *on top* of the folder in the container. For this to
work you obviously need to manually checkout the code to ``/path/to/local/wger/``
and create a settings file as well.

Production
----------

The production docker compose setup can be found here: https://github.com/wger-project/docker

0 comments on commit 499ca3e

Please sign in to comment.