Open maxkokocom opened 22 hours ago
wait-for-it is
missing here:
https://github.com/cookiecutter/cookiecutter-django/blob/8fb90ab02a8e20abafa9152616eb54a912617d1a/%7B%7Bcookiecutter.project_slug%7D%7D/compose/production/django/Dockerfile#L67-L75
It is added to the build step but it is required at runtime.
Sorry, does it mean version from 4 days ago is already working? What cookiecutter version is it? Or is this message tatgeted at someone else to add it somewhere else as well?
wait-for-it is missing on that line, add it and it will work.
What happened?
When trying to run docker either by itself or via docker compose up on freshly generated project without any changes I am getting following errors:
django-1 | /entrypoint: line 19: wait-for-it: command not found celeryworker-1 | /entrypoint: line 19: wait-for-it: command not found celerybeat-1 | /entrypoint: line 19: wait-for-it: command not found flower-1 | /entrypoint: line 19: wait-for-it: command not found
I also have app failing to auth with postgres with user from .envs, I wonder should creating a user manually be added to docs/readme or have I missed something and it is in dockerfile scripts somewhere?
What should've happened instead?
Both docker compose and docker themselves should start in a working state on a fresh project.
Additional details
Host system configuration:
Version of cookiecutter CLI (get it with
cookiecutter --version
): Cookiecutter 2.6.0OS name and version: ProductName: macOS ProductVersion: 14.6.1 BuildVersion: 23G93
Python version, run
python3 -V
: Python 3.12.5Docker version (if using Docker), run
docker --version
: Docker version 27.1.1, build 6312585docker compose version (if using Docker), run
docker compose --version
: Docker Compose version v2.29.1-desktop.1