From c59cc2d0fd973cd2e11b7c7f72932ec51d33dd59 Mon Sep 17 00:00:00 2001 From: Orhan Hirsch Date: Mon, 18 Feb 2019 23:10:53 +0100 Subject: [PATCH] add docs and example --- README.md | 3 +++ deployment/docker-compose.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index a52b1156..d27869fb 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,9 @@ $ yarn start - `MONGO_URL` - Url to the database connection - `default`: `mongodb://localhost:27017/vote` +- `REDIS_URL` + - Hostname of the redis server + - `default`: `localhost` - `LOGO_SRC` _(optional)_ - Url to the main logo on all pages - `default`: `/static/images/Abakule.jpg` diff --git a/deployment/docker-compose.yml b/deployment/docker-compose.yml index 326c7a01..c2ec1fa6 100644 --- a/deployment/docker-compose.yml +++ b/deployment/docker-compose.yml @@ -3,11 +3,14 @@ version: '2' services: mongo: image: mongo:3.6 + redis: + image: redis:latest vote: image: abakus/vote:latest environment: # Reed more about these in the README-file in the base directory MONGO_URL: 'mongodb://mongo:27017/vote' + REDIS_URL: 'redis' COOKIE_SECRET: 'long-secret-here-is-important' LOGO_SRC: 'https://raw.githubusercontent.com/webkom/lego/master/assets/abakus_webkom.png' ports: