Docker compose simple nodejs with redis example

preview_player
Показать описание
Dockerfile:
###############################################
# Dockerfile to build a sample web application
# docker build -t mynodejs .
###############################################
# Base image is node
FROM node:6-alpine
WORKDIR /myapp
RUN npm update

---
services:
web:
build: .
links:
- redis
ports:
- 8080:80
redis:
image: redis:latest

// A Simple Request/Response web application
var http = require('http');
var url = require('url');
var redis = require('redis');

// Pull the response (value) string using the URL
});
});
Рекомендации по теме
visit shbcf.ru