docker-typescript/docker-compose.dev.yaml

13 lines
356 B
YAML
Raw Normal View History

2023-06-24 19:13:06 +02:00
version: '3'
services:
api:
build:
context: .
target: development
volumes:
- ./:/usr/src/app
- /usr/src/app/node_modules # prevent node_modules folder to be overwritten by host machine
ports:
- 4000:4000
command: npm run dev # ovverride the RUN command specified in the Dockerfile for development purposes