feat: expose port 8080 on host, add host-port smoke test in deploy.sh
This commit is contained in:
parent
6e634614fc
commit
9e591d92cd
11
deploy.sh
11
deploy.sh
|
|
@ -64,6 +64,17 @@ smoke_check "/" "hreflang"
|
|||
smoke_check "/" "mailto:oskar@gethumanai.com"
|
||||
smoke_check "/en/" "human review"
|
||||
|
||||
# ── 4. Host-port smoke test ───────────────────────────────────────────────
|
||||
# Host: ubuntu-4gb-hel1-1
|
||||
echo "Checking host port 8080..."
|
||||
if curl -fsS -I --max-time 5 http://localhost:8080; then
|
||||
echo "OK localhost:8080 — 200"
|
||||
else
|
||||
echo "FAIL localhost:8080 did not return 200"
|
||||
docker compose logs --tail=40
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Smoke tests passed. Deploy complete."
|
||||
REMOTE
|
||||
|
||||
|
|
|
|||
|
|
@ -3,10 +3,12 @@ services:
|
|||
build: .
|
||||
container_name: humanai-landing
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8080:80"
|
||||
networks:
|
||||
- npm_default
|
||||
# Port is NOT exposed to host — traffic goes through Nginx Proxy Manager only.
|
||||
# In NPM, proxy host → http://humanai-landing:80
|
||||
# NPM reaches this container by name: http://humanai-landing:80
|
||||
# Port 8080 is also exposed on the host for direct access / health checks.
|
||||
|
||||
networks:
|
||||
npm_default:
|
||||
|
|
|
|||
Loading…
Reference in a new issue