-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (33 loc) · 948 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (33 loc) · 948 Bytes
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
33
34
services:
# Our NestJS Api
api:
build:
dockerfile: Dockerfile
context: ./api
# Only build development stage from Dockerfile
target: development
# Mount our host dir to the docker container
# Mount api directory (./api) to (:) docker container (/application/src/app)
# Reflect File changes from host to container
volumes:
- ./api:/application/src/app
- /application/src/app/node_modules/
# RUN in debug mode: npm run start:debug --> Also start your vscode debugger
# Run in dev mode: npm run start:dev
command: npm run start
ports:
- 3000:3000
# Our Angular Frontend
frontend:
build:
dockerfile: Dockerfile
context: ./frontend
target: development
command: npm run start
volumes:
- ./frontend:/application/frontend/src/app
- /application/frontend/src/app/node_modules
ports:
- 4200:4200
links:
- api