Comments (6)
@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.
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.
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.
@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.
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.
I'd say that's all you need @mik-p - nice one!
from docker-wintercms.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-wintercms.