Files
officinazuliani/docs/adr/0004-hosting-docker-server-a75.md
T
andrearuffiniandClaude Opus 5.5 0571890d47 feat: deploy in Docker on the a75 server like cam85
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>
2026-11-04 15:18:44 +01:00

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) serving dist/ with docker/nginx.conf (clean URLs, .html → 301, long cache for hashed assets)
  • docker-compose.yml: container officinezuliani-site, image officinezuliani-web:latest, no published ports, external network a75
  • deploy.sh (same flow as cam85): local npm run build check → docker buildx --platform linux/amd64 → docker save | ssh docker load → docker compose up -d in /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 except officinezulianiudine.it gets X-Robots-Tag: noindex, nofollow so the test copy is not indexed
  • No .env is copied: the site needs none, and the local .env holds 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