Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:foxmask/django-th
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxMaSk committed Dec 22, 2016
2 parents 016aa3e + 8162e42 commit 5da2d93
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README_docker.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Docker for Trigger Happy

This is a very very early stage for docker support
but this should do the trick until next time
but this should do the trick until next time based on https://docs.docker.com/engine/reference/commandline/build/ and https://docs.docker.com/compose/django/ and a bit of https://hub.docker.com/_/django/

## Build

Expand All @@ -18,6 +18,16 @@ docker-compose up
## Database update/create

```
docker-compose run web python manage.py migrate
docker-compose run web python manage.py createsuperuser
docker-compose run web python manage.py migrate --settings=django_th.settings_docker
docker-compose run web python manage.py createsuperuser --settings=django_th.settings_docker
```


## Running tasks

2 tasks are usually in the crontab : one to read the data source, one to publish the grabbed data:

```
docker-compose run web python manage.py read --settings=django_th.settings_docker
docker-compose run web python manage.py publish --settings=django_th.settings_docker
```

0 comments on commit 5da2d93

Please sign in to comment.