Skip to content

Feat/docker compose#160

Merged
Fatimasanusi merged 2 commits into
Trust-Analysis:mainfrom
yungjay21:feat/docker-compose
Jun 28, 2026
Merged

Feat/docker compose#160
Fatimasanusi merged 2 commits into
Trust-Analysis:mainfrom
yungjay21:feat/docker-compose

Conversation

@yungjay21

Copy link
Copy Markdown
Contributor

Closes #36

Files added (7):

┌──────────────────────────┬───────────────────────────────────────────────────────────────┐
│ File │ Purpose │
├──────────────────────────┼───────────────────────────────────────────────────────────────┤
│ docker-compose.yml │ Orchestrates all services │
├──────────────────────────┼───────────────────────────────────────────────────────────────┤
│ backend/Dockerfile │ node:20-alpine, prod deps only │
├──────────────────────────┼───────────────────────────────────────────────────────────────┤
│ backend/.dockerignore │ Excludes node_modules, .env, tests │
├──────────────────────────┼───────────────────────────────────────────────────────────────┤
│ frontend/Dockerfile │ Multi-stage: dev → build → prod (nginx) │
├──────────────────────────┼───────────────────────────────────────────────────────────────┤
│ frontend/nginx.prod.conf │ SPA fallback + long-lived asset caching │
├──────────────────────────┼───────────────────────────────────────────────────────────────┤
│ frontend/.dockerignore │ Excludes node_modules, dist, .env │
├──────────────────────────┼───────────────────────────────────────────────────────────────┤
│ frontend/vite.config.js │ Added host: true so dev server binds to 0.0.0.0 inside │
│ │ container │
└──────────────────────────┴──────────────────────────────────────────────────

- docker-compose.yml: three profiles
    • (default / dev)  backend + frontend-dev (Vite HMR on :5173)
    • prod             backend + frontend-prod (built assets via nginx :80)
    • redis            adds optional Redis cache sidecar

- backend/Dockerfile: node:20-alpine, prod deps only, exposes :3001
- frontend/Dockerfile: multi-stage (dev → build → prod/nginx)
- frontend/nginx.prod.conf: SPA fallback, long-lived asset caching
- backend/.dockerignore / frontend/.dockerignore: exclude node_modules,
  dist, .env, logs from build context
- vite.config.js: set host:true so the dev container binds to 0.0.0.0
@drips-wave

drips-wave Bot commented Jun 28, 2026

Copy link
Copy Markdown

@yungjay21 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Fatimasanusi
Fatimasanusi merged commit 60d8b50 into Trust-Analysis:main Jun 28, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add docker-compose for full stack

2 participants