forked from kshitijcode/vscodedebug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
32 lines (26 loc) · 919 Bytes
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: '3'
services:
servicea-api:
# Using a Dockerfile is optional, but included for completeness.
build:
context: serviceA/
dockerfile: Dockerfile
# [Optional] You can use build args to set options. e.g. 'VARIANT' below affects the image in the Dockerfile
volumes:
- ./serviceA:/app
ports:
- 3000:3000
- 3001:3001
- 5000:5000
- 5001:5001
# Overrides default command so things don't shut down after the process ends.
command: /app/node_modules/nodemon/bin/nodemon.js --inspect=0.0.0.0:5000 /app/index.js
serviceb-api:
build:
context: serviceB/
dockerfile: Dockerfile
volumes:
- ./serviceB:/app
# Overrides default command so things don't shut down after the process ends.
command: /app/node_modules/nodemon/bin/nodemon.js --inspect=0.0.0.0:5001 /app/index.js
network_mode: service:servicea-api