Skip to content

Commit

Permalink
chore: docker cli has compose now
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisCusihuaman committed Sep 9, 2023
1 parent ba40dde commit 929e3b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,22 @@ You can read more about BaseSettings class here: https://pydantic-docs.helpmanua
You can start the project with docker using this command:

```bash
docker-compose -f deploy/docker-compose.yml --project-directory . up --build
docker compose -f deploy/docker-compose.yml --project-directory . up --build
```

If you want to develop in docker with autoreload add `-f deploy/docker-compose.dev.yml` to your docker command.
Like this:

```bash
docker-compose -f deploy/docker-compose.yml -f deploy/docker-compose.dev.yml --project-directory . up --build
docker compose -f deploy/docker-compose.yml -f deploy/docker-compose.dev.yml --project-directory . up --build
```

This command exposes the web application on port 8000, mounts current directory and enables autoreload.

But you have to rebuild image every time you modify `poetry.lock` or `pyproject.toml` with this command:

```bash
docker-compose -f deploy/docker-compose.yml --project-directory . build
docker compose -f deploy/docker-compose.yml --project-directory . build
```

## Project structure
Expand Down

0 comments on commit 929e3b7

Please sign in to comment.