update,
This commit is contained in:
28
COMP3322A-Lab-6-Nodejs-WebService-Pug/docker-compose.yml
Normal file
28
COMP3322A-Lab-6-Nodejs-WebService-Pug/docker-compose.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
version: "3.1"
|
||||
|
||||
services:
|
||||
mongo:
|
||||
image: mongo
|
||||
restart: always
|
||||
ports:
|
||||
- 127.0.0.1:27017:27017
|
||||
|
||||
mongo-express:
|
||||
image: mongo-express
|
||||
restart: always
|
||||
ports:
|
||||
- 127.0.0.1:8081:8081
|
||||
|
||||
webdev:
|
||||
image: node:14-buster
|
||||
# user: 1000:1000
|
||||
volumes:
|
||||
- .:/app
|
||||
working_dir: /app
|
||||
ports:
|
||||
- 127.0.0.1:3000:3000
|
||||
- 127.0.0.1:9229:9229
|
||||
environment:
|
||||
- NODE_OPTIONS=--inspect=0.0.0.0:9229
|
||||
command: sleep infinity
|
||||
|
Reference in New Issue
Block a user