Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- myApp:
- build: myApp
- ports:
- - "80:8000"
- FROM fedora-nodeJS
- ADD app.js /
- EXPOSE 8000
- CMD node app
- var http = require('http');
- var PORT = 8000;
- var ADDR = '0.0.0.0';
- http.createServer(function(req, res) {
- res.writeHead(301, { Location: 'http://stackoverflow.com' });
- res.end();
- }).listen(PORT,ADDR);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement