Commit d7ac8da
fix: improve nginx template container matching for docker-gen 0.16.x
Use multiple fallback methods to find the target nginx container:
1. Try docker-compose service label (most reliable)
2. Try container name with leading slash
3. Try container name without slash
This ensures compatibility across different docker-gen versions and container naming schemes.
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent 8b1b63d commit d7ac8da
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
2 | 8 | | |
3 | 9 | | |
4 | 10 | | |
| |||
0 commit comments