-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
44 lines (42 loc) · 1.44 KB
/
docker-compose.dev.yml
File metadata and controls
44 lines (42 loc) · 1.44 KB
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
35
36
37
38
39
40
41
42
43
44
# Development override: dev image, nx serve --watch, Compose Watch (sync).
# Use: docker compose -f docker-compose.yml -f docker-compose.dev.yml up --watch
# Set NODE_ENV=development and LOG_LEVEL=debug in .env for dev.
services:
auth-server:
build:
context: .
dockerfile: apps/auth-server/Dockerfile.dev
command: ['pnpm', 'nx', 'serve', 'auth-server', '--watch']
environment:
# Fix for Prisma/NX finding schema in monorepo structure inside container
NX_DAEMON: 'false'
develop:
watch:
# Sync source code changes immediately (Hot Reload)
- action: sync
path: ./apps/auth-server
target: /app/apps/auth-server
ignore:
- node_modules
- dist
- action: sync
path: ./libs
target: /app/libs
ignore:
- node_modules
- dist
# Sync config files but DO NOT trigger full rebuilds automatically
# This prevents "soft-locks" on every save.
# If dependencies change, run: docker compose down && docker compose up --build
- action: sync
path: ./package.json
target: /app/package.json
- action: sync
path: ./pnpm-lock.yaml
target: /app/pnpm-lock.yaml
- action: sync
path: ./nx.json
target: /app/nx.json
- action: sync
path: ./tsconfig.base.json
target: /app/tsconfig.base.json