File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -365,16 +365,17 @@ jobs:
365
365
366
366
---
367
367
368
- # Multi-Service (Compose) Pattern
368
+ # Tips & Tricks: Git Line Endings (Windows/WSL)
369
369
370
- - docker-compose.yml defines api, db, cache, worker services
371
- - devcontainer.json references primary service: "service": "api"
372
- - Shared network: service hostnames = service names (db:5432)
373
- - volumes: persist database state or ephemeral for clean tests
374
- - Add Features only to dev container service; others use minimal images
375
- - Tip: Use HEALTHCHECK for dependent service readiness (faster stabilize)
370
+ On Windows/WSL, you may see many modified files due to line ending differences between host and container.
376
371
377
- Flow: Editor -> api container (extensions) -> other services via internal network.
372
+ - Add a ` .gitattributes` file to enforce consistent line endings:
373
+
374
+ ` ` ` gitattributes
375
+ * text=auto eol=lf
376
+ *.{cmd,[cC][mM][dD]} text eol=crlf
377
+ *.{bat,[bB][aA][tT]} text eol=crlf
378
+ ` ` `
378
379
379
380
---
380
381
You can’t perform that action at this time.
0 commit comments