Skip to content

Commit

Permalink
dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
augnustin committed May 25, 2016
1 parent e145971 commit 19c86cd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM node:argon

WORKDIR /gdoc-publisher
ADD . /gdoc-publisher
RUN npm install
17 changes: 17 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
web:
build: .
command: npm start
volumes:
- .:/gdoc-publisher
ports:
- "3000:3000"
links:
- memcached
environment:
PORT: 3000
memcached:
hostname: memcached
image: memcached
environment:
# Memcached memory limit in megabytes
- MEMCACHED_MEMORY_LIMIT=128
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ var path = require('path');
var request = require('request');

var app = express();
var mc = memjs.Client.create()

var mc = memjs.Client.create((process.env.MEMCACHED_1_PORT || '').replace('tcp://', ''))

app.set('view engine', 'ejs');
app.set('views', __dirname);
Expand Down

0 comments on commit 19c86cd

Please sign in to comment.