wintercms / winter

Free, open-source, self-hosted CMS platform based on the Laravel PHP Framework.
https://wintercms.com
MIT License
1.36k stars 192 forks source link

docker-wintercms - Admin password generation vs. docs #95

Closed pablorq closed 3 years ago

pablorq commented 3 years ago

Description:

The Quick Start says:

Login to the backend with the username admin and password admin.

After install it a random password is generated, which is a problem not only because it is not matching the docs but also when using tools like Portainer, where the generated password is not easy to retrieve.

Steps To Reproduce:

Install WinterCMS with the docker-compose file with database support.

Run:

$ docker-compose up -d
$ docker-compose exec web php artisan winter:up

...

Winter.Demo
 - v1.0.1:  First version of Demo
Seeded System 
Seeded Backend 

\Backend\Database\Seeds\DatabaseSeeder reported:
 - The following password has been automatically generated for the "admin" account: Tnq1g8Uj45itsKnYIkVC7p

Go to the backend page.

Try admin:admin as specified on the docs.

It doesn't work.

Spected Behaviour

Use admin:admin as specified on the docs to access the backend.

bennothommo commented 3 years ago

@pablorq Please submit an issue to @mik-p to adjust the Docker build. One thing I would suggest he does is set up the build process to run php artisan winter:passwd on first entry and set the password from an environment variable (or set it to admin / admin by default).

pablorq commented 3 years ago

I can't (nobody can, really) submit issues to @mik-p on docker-wintercms.

This is why I submit it here.

mik-p commented 3 years ago

Yes I have used this suggestion previously and can add some ways to fix. For your issue you may also run: docker exec -it container_name winter passwd admin admin

After container start.

Should be able to make issues now

pablorq commented 3 years ago

(Moved to https://github.com/mik-p/docker-wintercms/issues/)