Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Improve setup for local development (#17353)

Jonatan Witoszek4d0ab24fe14b
diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml
index 89e3c4464c..e338f0dd00 100644
--- a/.devcontainer/docker-compose.yml
+++ b/.devcontainer/docker-compose.yml
@@ -38,12 +38,14 @@ services:
restart: unless-stopped
volumes:
- saleor-redis:/data
+ ports:
+ - 6379:6379
mailpit:
image: axllent/mailpit
ports:
- - "1025" # SMTP Server
- - "8025" # Mailpit UI
+ - 1025:1025 # SMTP Server
+ - 8025:8025 # Mailpit UI
restart: unless-stopped
volumes:
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f86b9e472b..a4da31aa37 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -68,7 +68,6 @@ cd .devcontainer
docker compose up db dashboard redis mailpit
```
-
If you didn’t set python version globally set [pyenv](https://github.com/pyenv/pyenv) local version:
```shell
@@ -357,6 +356,9 @@ pre-commit install
For more information on how it works, see the `.pre-commit-config.yaml` configuration file.
+> [!NOTE]
+> Running `git commit` for the first time might take a while, since all dependencies will be setting up.
+
Saleor has a strict formatting policy enforced by the [black formatting tool](https://github.com/python/black).
Module names should make their purpose obvious. Avoid generic file names such as `utils.py`.