PROBLEM:
webserver contain was not running within docker.desktop on Windows.
ANALYSIS:
Docker Desktop Logs: "/docker-entrypoint.sh: 47: exec: /start-nginx.sh: not found"
Convert start-nginx.sh to Unix line endings (Windows CRLF issue). ChatGPT found this.
RESOLUTION (workaround):
1a)
In VS Code: open start-nginx.sh -> bottom-right click CRLF -> change to LF -> save.
*I used this method.
OR
1b)
Quick fix with PowerShell (no extra tools)
From c:\topolograph-docker\webserver:
Convert CRLF -> LF
(Get-Content -Raw start-nginx.sh) -replace "rn","`n" | Set-Content -NoNewline start-nginx.sh
Then rebuild the webserver image and restart.
cd C:\topolograph-docker
Stop stack
docker compose down # or: docker-compose down
Rebuild just the webserver image from your Dockerfile
docker compose build webserver # or: docker-compose build webserver
Bring everything back up
docker compose up -d # or: docker-compose up -d
webserver is now running :)