Sign inSign up

ulayera/keystone

By ulayera

Updated over 8 years ago

Simple keystone docker.

Image
0

929

ulayera/keystone repository overview

Dockerfile:

FROM node:carbon

RUN npm install -g generator-keystone yo RUN useradd -ms /bin/bash docker USER docker WORKDIR /home/docker/ RUN yo keystone auto WORKDIR /home/docker/keystone-starter RUN npm install EXPOSE 3000 CMD [ "node", "keystone" ]

To create and run detached (Creates container, runs it without attaching the stdout)

docker run -d --name keystone --link YourMongoContainer:YourMongoContainer -e MONGO_URI=mongodb://YourMongoContainer/YourSiteName -v /any/path/you/like/keystone:/home/docker/keystone-starter ulayera/keystone

If you need to forward the port to the host (replace the first 3000 with the port you like i.e: 8080, sudo for 80):

docker run -d --name keystone --link YourMongoContainer:YourMongoContainer -e MONGO_URI=mongodb://YourMongoContainer/YourSiteName -v /any/path/you/like/keystone:/home/docker/keystone-starter -p 3000:3000 ulayera/keystone

To see logs (you can CTRL + C safely without shutting it down):

docker logs -f keystone

Go immediately to http://localhost:3000/keystone and try to log in with the default credentials:

https://github.com/keystonejs/generator-keystone/blob/master/app/index.js ... search for "this.adminLogin" ... usually: this.adminLogin = '[email protected]'; this.adminPassword = 'admin';

Tag summary

Content type

Image

Digest

Size

334.2 MB

Last updated

over 8 years ago

docker pull ulayera/keystone