mirror of
https://github.com/mudabbir-ahmad/Portfolio_V1.git
synced 2026-12-06 19:53:09 +00:00
- Compose publishes 3001:3001 only (Nginx Proxy Manager fronts it), defaults filled from the CV details, CV mounted, token read from the gitignored root .env - Privacy notice now covers Cloudflare and its bot/AI/scraping protection - Real bullet points in the experience section - Recaptured the portfolio demo screenshots Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
39 lines
1.8 KiB
YAML
39 lines
1.8 KiB
YAML
# Container deployment: docker compose up -d --build (or: npm run docker)
|
|
#
|
|
# Inside the container the site reads ONLY the values below. secrets/ is never
|
|
# copied into the image (.dockerignore), so nothing personal lives in it.
|
|
# Running without Docker (npm run dev / npm start) reads secrets/.env instead.
|
|
#
|
|
# The defaults below are the public details from the CV. The one secret,
|
|
# GITHUB_TOKEN, is never written here: put it in a gitignored root .env file
|
|
# (compose substitutes ${VARS} from it), or in docker-compose.override.yml.
|
|
services:
|
|
portfolio:
|
|
build: .
|
|
image: portfolio
|
|
container_name: portfolio
|
|
restart: unless-stopped
|
|
ports:
|
|
# Nginx Proxy Manager handles TLS and the public side, so this is a plain mapping.
|
|
- "3001:3001"
|
|
environment:
|
|
VITE_NAME: "${VITE_NAME:-Mudabbir}"
|
|
VITE_EMAIL: "${VITE_EMAIL:-mudabbira.uk@gmail.com}" # empty hides the email button
|
|
VITE_GITHUB_USER: "${VITE_GITHUB_USER:-mudabbir-ahmad}"
|
|
VITE_LINKEDIN: "${VITE_LINKEDIN:-https://www.linkedin.com/in/mudabbir-ahmad-4245a0281}" # empty hides the LinkedIn button
|
|
VITE_UNIVERSITY: "${VITE_UNIVERSITY:-Kingston University}"
|
|
VITE_CV_URL: "${VITE_CV_URL:-/CV/my_cv.pdf}" # e.g. /CV/your-cv.pdf; empty hides CV buttons
|
|
GITHUB_TOKEN: "${GITHUB_TOKEN:-}" # read-only PAT, set in the gitignored root .env; empty disables the contribution graph
|
|
ALLOWED_ORIGIN: "${ALLOWED_ORIGIN:-http://localhost:3001}"
|
|
FORCE_HTTPS: "${FORCE_HTTPS:-false}"
|
|
# Only if you set VITE_CV_URL: the CV is never baked into the image.
|
|
volumes:
|
|
- ./public/CV:/app/dist/CV:ro
|
|
read_only: true
|
|
tmpfs: [/tmp]
|
|
cap_drop: [ALL]
|
|
security_opt: ["no-new-privileges:true"]
|
|
pids_limit: 100
|
|
mem_limit: 256m
|
|
cpus: 0.5
|