jforman / binder

Django Web Admin Gui for manging BIND DNS Zones
129 stars 41 forks source link

Admin user in the docker image #61

Open evlist opened 4 years ago

evlist commented 4 years ago

Please note that, unlike written in the README, there is no admin user predefined in the docker image.

It's not a big deal since its easy to create through "python manage.py createsuperuser" in a newly created container (or image) and that's more secure than providing a default admin but that could be mentioned in the README ;) ...

Thanks.

mshahat commented 3 years ago

against what should i run the python manage.py createsuperuser ?

agafonovdmitry commented 2 years ago

I was able to do it like this, building own image:

FROM jforman/binder:latest

RUN ["python", "manage.py", "shell", "-c", "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@example.com', 'admin')"]