Git Product home page Git Product logo

Comments (6)

bennothommo avatar bennothommo commented on July 20, 2024 1

@pablorq just to note, the docs are out of date. Setting a default of admin / admin is not a good security practice, hence why we put the generated password on install.

from docker-wintercms.

mik-p avatar mik-p commented on July 20, 2024 1

I have tested the combination of environment options and I have added an example docker compose file for fixing timing.

See examples/init-winter/docker-compose.yml

this commit

I think this is as far as I would like to automate. I think any further automation might be better implemented by extending the base image in a cutom Dockerfile

from docker-wintercms.

pablorq avatar pablorq commented on July 20, 2024

Using this:

docker exec -it container_name winter passwd admin admin

... as suggested in wintercms issue could be a solution if you work with docker from command line.

But in my case, I use Portainer and create stacks for each app, and this solution is not easy to use.

I think that the best way is to have admin:admin by default, specially when used with the INIT_WINTER=true variable.

from docker-wintercms.

pablorq avatar pablorq commented on July 20, 2024

@bennothommo I know that is not a good practice.

The point I'm trying to focus on is to deploy docker-wintercms with tools like Portainer or Kubernetes. And for this is necessary to setup the admin password outside the container, without having to get into it to extract the admin password.

I was trying to do that by adding this to the docker-compose file (as detailed here):

    environment:
    ...
      - INIT_WINTER=true
      - CMS_ADMIN_PASSWORD=admin

But it doesn't work. The password is randomly generated inside the container.

Any other ideas?

from docker-wintercms.

mik-p avatar mik-p commented on July 20, 2024

I just added this and need to properly test it. I think there may be some timing issues with the DB coming up and the winter:up occurring (and crashing) too early. I'm adding more detail on the subject at the moment

from docker-wintercms.

bennothommo avatar bennothommo commented on July 20, 2024

I'd say that's all you need @mik-p - nice one!

from docker-wintercms.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.