If I have seen further it is only by standing on the shoulders of giants. - Isaac Newton
FROM node:alpine
MAINTAINER Mike Hathaway
RUN mkdir -p /usr/info-net-analysis/app
WORKDIR /usr/info-net-analysis/app
COPY . /usr/info-net-analysis/app
RUN npm install
EXPOSE 8080
CMD [ "npm", "start" ]
sudo docker run -it -p 127.0.0.1:3000:3000 scraper-service
sudo docker build -t scraper-service .
nginx:
build: ./nginx
links:
- node1:node1
- node2:node2
- node3:node3
ports:
- "80:80"
node1:
build: ./node
links:
- redis
ports:
- "8080"
node2:
build: ./node
links:
- redis
ports:
- "8080"
node3:
build: ./node
links:
- redis
ports:
- "8080"
redis:
image: redis
ports:
- "6379"