Skip to content

Commit

Permalink
docker-compose -> docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
ipmb committed Feb 9, 2024
1 parent 31724f6 commit 46c9892
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,34 +40,34 @@ To use `django-layout`:

Build and run the project:

docker-compose up --build
docker compose up --build

To run Django commands like migrations and shell or to enter the
container bash do:

docker-compose run --rm app bash
docker-compose run --rm app manage.py createsuperuser
docker-compose run --rm app manage.py migrate
docker-compose run --rm app manage.py shell
docker compose run --rm app bash
docker compose run --rm app manage.py createsuperuser
docker compose run --rm app manage.py migrate
docker compose run --rm app manage.py shell

To stop containers run:

docker-compose down
docker compose down

To update a container after adding a new requirement for example:

docker-compose build
docker compose build

## Running the project

### Docker

Create super user:

docker-compose run --rm app manage.py createsuperuser
docker compose run --rm app manage.py createsuperuser

Make sure you have the containers running:

docker-compose up
docker compose up

Access [localhost:8000/{{ project_name }}/admin/](http://localhost:8000/{{ project_name }}/admin/).

0 comments on commit 46c9892

Please sign in to comment.