From 9e591d92cd77c7d3577222c5fb5be5c416530680 Mon Sep 17 00:00:00 2001 From: Oskar Kapala Date: Tue, 2 Jun 2026 21:48:34 +0200 Subject: [PATCH] feat: expose port 8080 on host, add host-port smoke test in deploy.sh --- deploy.sh | 11 +++++++++++ docker-compose.yml | 6 ++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 1df356b..ae68da5 100755 --- a/deploy.sh +++ b/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 diff --git a/docker-compose.yml b/docker-compose.yml index 9a890b7..de5b0de 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: