[Bug] The .env.template as is is not enough to get the repo going locally via Docker #200
Open
1 task done
Labels
🤖 aspect: dx
Concerns developers' experience with the codebase
🛠 goal: fix
Bug fix
help wanted
Open to participation from the community
🟨 priority: medium
Not blocking but should be fixed soon
🏁 status: ready for work
Ready for work
Description
There were many issues getting legalDB running, all related to environmental variables.
Reproduction
Clone the repo and follow the instructions in the README to run via docker. Notice the errors that show up.
First error:
/CreativeCommons/legaldb/docker-compose.yml: error while interpolating services.app.environment.[]: required variable DJANGO_SECRET_KEY is missing a value
Then:
/CreativeCommons/legaldb/docker-compose.yml: error while interpolating services.app.environment.[]: required variable DJANGO_SUPERUSER_PASSWORD is missing a value
Then: (I've shortened this, but at this point it gets stuck in a loop where it starts and restarts)
From above, these seem to be the main issue:
This is where I got stuck before I realized I needed to set these two variables explicitly
This may be obvious for people who use Django regularly, but it wasn't to me and some of the other Outreachy participants, as seen in the Slack channel discussions.
Expectation
Instructions should run the app seamlessly. The
env.temnplate
should be more specific and the README too.Environment
MacOS 15.5
Additional context
Run into this while trying to set up for Outreachy
Resolution
The text was updated successfully, but these errors were encountered: