27 lines
549 B
YAML
27 lines
549 B
YAML
services:
|
|
dev:
|
|
build:
|
|
args:
|
|
NODE_VERSION: '20'
|
|
context: .
|
|
target: dev
|
|
environment:
|
|
- NODE_ENV=development
|
|
- PORT=${DEV_PORT_1:-3000}
|
|
- BACKEND_PORT=${DEV_PORT_2:-5000}
|
|
ports:
|
|
- ${DEV_PORT_1:-3000}:3000
|
|
- ${DEV_PORT_2:-5000}:5000
|
|
- 9229:9229
|
|
volumes:
|
|
- .:/app:cached
|
|
- node_modules:/app/node_modules
|
|
- npm-cache:/root/.npm
|
|
- ~/.gitconfig:/root/.gitconfig
|
|
- ~/.ssh:/root/.ssh
|
|
|
|
volumes:
|
|
node_modules: {}
|
|
npm-cache: {}
|
|
pip-cache: {}
|