Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions mean-socket/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var express=require('express');
var app=express();
app.get('/',function(req,res)
{
res.send('Hello World!');
});
var server=app.listen(3000,function() {});
6 changes: 1 addition & 5 deletions mean-socket/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ services:
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example

mongo-express:
image: mongo-express
volumes:
Expand All @@ -29,11 +28,8 @@ services:
ports:
- 8080:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
ME_CONFIG_MONGODB_URL: mongodb://root:example@%2Ftmp%2Fmongodb-27017.sock
# ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/
# frontend:
# image: nginx
# volumes:
# logvolume01: {}
# logvolume01: {}
7 changes: 7 additions & 0 deletions mean-socket/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:17

WORKDIR /usr/app/
COPY app.js /user/app

RUN npm install express
CMD node app.js