Nginx image built locally for amd64 and loaded via docker save/load, compose on the a75 network behind Nginx Proxy Manager (port 3000). Live on officinezuliani.a75.eu with noindex on non-production hosts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.7 KiB
1.7 KiB
ADR 0004: Host the site in Docker on the a75 server, deployed like cam85
Status
Accepted (2026-11-04) — supersedes the "hosting not decided" note in ADR 0003
Context
The site is static (ADR 0003). The owner already runs other sites on the VPS 217.76.62.220 (x86_64) with the same pattern as cam85: Docker containers on the shared network a75, published through Nginx Proxy Manager (container nginx-app-1), images built locally and loaded on the server.
Decision
- Image: multi-stage
Dockerfile(Node 22 build →nginx:1.27-alpine) servingdist/withdocker/nginx.conf(clean URLs,.html→ 301, long cache for hashed assets) docker-compose.yml: containerofficinezuliani-site, imageofficinezuliani-web:latest, no published ports, external networka75deploy.sh(same flow as cam85): localnpm run buildcheck →docker buildx --platform linux/amd64→docker save | ssh docker load→docker compose up -din/home/ubuntu/officinezuliani- The container listens on port 3000 (same convention as cam85); the public hostname is a Proxy Host in Nginx Proxy Manager pointing to
officinezuliani-site:3000, with Let's Encrypt - Test hostname:
https://officinezuliani.a75.eu. Every host exceptofficinezulianiudine.itgetsX-Robots-Tag: noindex, nofollowso the test copy is not indexed - No
.envis copied: the site needs none, and the local.envholds only the Gitea token
Consequences
- Deploys need SSH access as root to the server and a local Docker with buildx
- No registry: rollback means rebuilding an older commit and redeploying
- DNS for the final domain (
officinezulianiudine.it, today on Italiaonline/Duda) must be moved to the server only at launch; until then a test hostname can be used