Files
portfolio/docker-compose.yml
Lucas 5a6355957f
All checks were successful
Portfolio/pipeline/head This commit looks good
feat(ci): add automated Lighthouse audit pipeline (#2)
Co-authored-by: Lucas <lucasroyer.dev@gmail.com>
Reviewed-on: #2
2026-01-12 11:53:24 +00:00

34 lines
765 B
YAML

services:
portfolio:
build:
context: .
args:
- NODE_VERSION=${NODE_VERSION}
- CADDY_VERSION=${CADDY_VERSION}
image: portfolio:${PORTFOLIO_VERSION}
container_name: portfolio
restart: always
networks:
- reverse-proxy
lighthouse-audit:
profiles:
- audit
image: zenika/alpine-chrome:${ZENIKA_VERSION}
container_name: lighthouse-audit
user: "0:0"
volumes:
- audit_dist:/app/dist
- audit_reports:/app/.lighthouseci
environment:
- CHROME_PATH=/usr/bin/chromium-browser
working_dir: /app
command: npx @lhci/cli@${LHCI_VERSION} collect --config=/app/dist/audit-config.cjs
volumes:
audit_dist:
audit_reports:
networks:
reverse-proxy:
external: true