Skip to content

Commit

Permalink
add --rm to docker compose run commands
Browse files Browse the repository at this point in the history
  • Loading branch information
macolo authored Aug 20, 2024
1 parent 9a9a4cf commit 917c289
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ Try it
cd django-cms-quickstart
docker compose build web
docker compose up -d database_default
docker compose run web python manage.py migrate
docker compose run web python manage.py createsuperuser
docker compose run --rm web python manage.py migrate
docker compose run --rm web python manage.py createsuperuser
docker compose up -d
Then open http://django-cms-quickstart.127.0.0.1.nip.io:8000 (or just http://127.0.0.1:8000) in your browser.
Expand Down Expand Up @@ -77,7 +77,7 @@ Updating requirements
The project uses a django best practise two step approach, freezing all dependencies with pip-tools. Here is how to update requirements:

1. Change `requirements.in` according to your needs. There is no need to pin the package versions here unless you have a good reason (i.e. known incompatibilities)
2. Run `docker compose run web pip-compile requirements.in >> requirements.txt`
2. Run `docker compose run --rm web pip-compile requirements.in >> requirements.txt`
3. `requirements.txt` should now have changed
4. Rebuild the container `docker compose build web` and restart `docker compose up -d`

Expand Down

0 comments on commit 917c289

Please sign in to comment.