Skip to content

Commit

Permalink
Update docs on Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Protasov committed Aug 21, 2019
1 parent 5a95822 commit 15f35be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
11 changes: 1 addition & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
TAG?=latest
IMAGENAME?=jtilander/rq-dashboard

.PHONY: image push all clean release force_release
.PHONY: all clean release force_release

all:
@grep -Ee '^[a-z].*:' Makefile | cut -d: -f1 | grep -vF all
Expand All @@ -21,9 +18,3 @@ force_release: clean
git push --tags
python setup.py sdist bdist_wheel
twine upload dist/*

image:
docker build -t $(IMAGENAME):$(TAG) .

push: image
docker push $(IMAGENAME):$(TAG) .
17 changes: 10 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,19 +146,22 @@ The RQ dashboard is currently being developed and is in beta stage.
Docker
------

You can also run the dashboard inside of docker, simply build the image with
You can also run the dashboard inside of docker:

::

$ make image
$ docker pull eoranged/rq-dashboard
$ docker run -p 9181:9181 eoranged/rq-dashboard

and you can then run the image, possibly modifying it with the following environment
variables from their default values
and you can then run the image.
You can pass additional options using environment variables with prefix RQ_DASHBOARD_*:

* REDIS_URL=redis://redis
* USERNAME=rq
* PASSWORD=password

* RQ_DASHBOARD_REDIS_URL=redis://redis:6379
* RQ_DASHBOARD_USERNAME=rq
* RQ_DASHBOARD_PASSWORD=password

See more info how to pass environment variables in "Docker documentation":https://docs.docker.com/compose/environment-variables/

.. _piptools: https://github.com/nvie/pip-tools
.. _Flask: http://flask.pocoo.org/
Expand Down

0 comments on commit 15f35be

Please sign in to comment.