-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
83 lines (79 loc) · 2.66 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
83 lines (79 loc) · 2.66 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# 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
developer-portal:
build:
context: .
dockerfile: apps/developer-portal/Dockerfile.dev
command: ['pnpm', 'nx', 'dev', 'developer-portal', '--', '--host', '0.0.0.0', '--port', '3001']
environment:
# Fix for NX finding config in monorepo structure inside container
NX_DAEMON: 'false'
develop:
watch:
# Sync source code changes immediately (Hot Reload)
- action: sync
path: ./apps/developer-portal
target: /app/apps/developer-portal
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.
# 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