Skip to content

Add docker config. #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker-compose.yml
Dockerfile
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:alpine
MAINTAINER moenka <[email protected]>

ENV SCRUMBLR_PORT="8080"
ENV SCRUMBLR_BASEURL="/"
ENV SCRUMBLR_REDIS_URL="redis://redis"
ENV SCRUMBLR_REDIS_PORT="6379"

WORKDIR /srv/scrumblr
COPY . /srv/scrumblr

RUN npm install

ENTRYPOINT /usr/local/bin/node server.js \
--port ${SCRUMBLR_PORT} \
--baseurl ${SCRUMBLR_BASEURL} \
--redis ${SCRUMBLR_REDIS_URL}:${SCRUMBLR_REDIS_PORT}

2 changes: 2 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ use scrumblr

if you'd like to use scrumblr go to [scrumblr.ca](http://scrumblr.ca). new boards are made simply by modifying the url to something unique. e.g. your team could use a shared board at: *http://scrumblr.ca/thisisoursecretboard23423242*

if you want to host a on-demand version for e.g. meetups or presentation you can run `docker-compose --build -d`. the application is then reachable via `localhost:7000`.

alternatively, you can follow the instructions below to setup scrumblr yourself. it is very simple -- it just uses redis and node.js.

if you are a developer, please fork and submit changes/fixes.
Expand Down
17 changes: 17 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: '3'
services:
redis:
image: redis:alpine
volumes:
- 'redis:/data'
server:
build: ./
image: scrumblr
links:
- redis
ports:
- '7000:8080'
volumes:
redis: