Docker setup - missing step
See original GitHub issueHello,
I was trying to set up the WagTail Demo locally and using the specified commands did setup my environment. But it didn’t allow me to log in to the backend(authentication error) until I ran the below command.
docker-compose run app /venv/bin/python manage.py createsuperuser
Can I create a pull request by changing the instruction?
Cheers V
Issue Analytics
- State:
- Created a year ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Bug: Docker build process appears to be missing steps #1224
Describe the bug when running docker-compose up --build, I get errors about missing tables. To Reproduce Steps to reproduce the behavior:.
Read more >Docker Engine installation overview
Docker Engine installation overview. Docker Desktop for Linux. Docker Desktop helps you build, share, and run containers easily on Mac and Windows as...
Read more >Install Docker Engine from binaries
Important. This page contains information on how to install Docker using binaries. These instructions are mostly suitable for testing purposes.
Read more >How to Fix and Debug Docker Containers Like a Superhero
Container errors are tricky to diagnose, but some investigative magic works wonders. Read along to learn how to debug Docker containers.
Read more >Image-building best practices - Docker Documentation
Run the command docker scan --login , and then scan your images using docker scan <image-name> . For example, to scan the getting-started...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
same, credentials from the docs are without any function
creating superuser solved it
docker-compose run app /venv/bin/python manage.py createsuperuser
thanks @Big-Vi
I think the issue with the hosted demo site is different - since there’s a single database shared across all users, it’s easy for anyone to casually change the default login (and they may well even think it’s the right thing to do, because the password is “changeme” after all).
I’m not sure why the extra
createsuperuser
step would be necessary here, because theadmin
/changeme
account is hard-coded in the fixture along with the rest of the site data - if that account was missing, then the rest of the demo data would be missing too. We’ve previously had issues with the Docker setup due to the fact that the webserver setup and the database setup happen in parallel, so it’s possible for the webserver to become available before the data is fully loaded - but again, if that was the problem here, you wouldn’t see the bakery homepage either at that point (only the default “Welcome to your new Wagtail site” splash page).