feat: expose port 8080 on host, add host-port smoke test in deploy.sh

This commit is contained in:
Oskar Kapala 2026-06-02 21:48:34 +02:00
parent 6e634614fc
commit 9e591d92cd
2 changed files with 15 additions and 2 deletions

View file

@ -64,6 +64,17 @@ smoke_check "/" "hreflang"
smoke_check "/" "mailto:oskar@gethumanai.com" smoke_check "/" "mailto:oskar@gethumanai.com"
smoke_check "/en/" "human review" 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." echo "Smoke tests passed. Deploy complete."
REMOTE REMOTE

View file

@ -3,10 +3,12 @@ services:
build: . build: .
container_name: humanai-landing container_name: humanai-landing
restart: unless-stopped restart: unless-stopped
ports:
- "8080:80"
networks: networks:
- npm_default - npm_default
# Port is NOT exposed to host — traffic goes through Nginx Proxy Manager only. # NPM reaches this container by name: http://humanai-landing:80
# In NPM, proxy host → http://humanai-landing:80 # Port 8080 is also exposed on the host for direct access / health checks.
networks: networks:
npm_default: npm_default: