ci: run app container on the proxy network for NPM
All checks were successful
Deploy / deploy (push) Successful in 11m10s

Attach altricade-portfolio to the existing 'proxy' network so Nginx Proxy
Manager reaches it by container name (altricade-portfolio:80), no host port.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Заид Омар Медхат | Zaid Omar Medhat 2026-07-09 12:38:15 +05:00
parent 28f860724f
commit bff28a8d0f

View file

@ -33,17 +33,16 @@ jobs:
docker build -t altricade-portfolio:${{ github.sha }} -t altricade-portfolio:latest .
# Replace the running container with the freshly built image.
# -p 8080:80 publishes the container on host port 8080.
# Point Nginx Proxy Manager's proxy host at: <server-ip>:8080
# (Or, if NPM runs in Docker, put this container on NPM's network and
# forward to altricade-portfolio:80 instead — see note below.)
# It joins the `proxy` network (the one Nginx Proxy Manager is on), so
# NPM can reach it by container name — no published host port needed.
# In NPM, forward to: hostname = altricade-portfolio , port = 80 , http
- name: Deploy container
run: |
docker rm -f altricade-portfolio 2>/dev/null || true
docker run -d \
--name altricade-portfolio \
--restart unless-stopped \
-p 8080:80 \
--network proxy \
altricade-portfolio:latest
# Free disk on the shared runner by dropping old, untagged images.