Skip to content

Add Dockerfiles and docker-compose configuration#6

Merged
lg-epitech merged 1 commit intomainfrom
lhnfe/dis-8-dockerize-application
May 4, 2026
Merged

Add Dockerfiles and docker-compose configuration#6
lg-epitech merged 1 commit intomainfrom
lhnfe/dis-8-dockerize-application

Conversation

@lhnfe
Copy link
Copy Markdown
Collaborator

@lhnfe lhnfe commented May 4, 2026

Description

This PR resolves DIS-8 by dockerizing the Dispatch application.

Multi-stage Dockerfiles are added for both the backend (NestJS + Bun) and the frontend (Next.js + Bun), with separate dev and prod build targets. The compose setup is split into three files:

  • docker-compose.yml: base services (PostgreSQL with healthcheck)
  • docker-compose.dev.yml: development mode with hot-reload volume mounts
  • docker-compose.override.yml: production mode without volumes

A .env.example is provided for the required PostgreSQL environment variables, and .dockerignore files are added for both services to keep image layers lean.

Changes include

  • Bugfix (non-breaking change that solves an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)

Checklist

  • I have assigned this PR to myself
  • I have added at least 1 reviewer
  • I have added the needed labels
  • I have linked this PR to an issue
  • I have linked this PR to a milestone
  • I have linked this PR to a project
  • I have tested this code
  • I have added / updated tests (unit / functional / end-to-end / ...)
  • I have updated the README and other relevant documents (guides...)
  • I have added sufficient documentation both in code, as well as in the READMEs

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 4, 2026

Copy link
Copy Markdown
Collaborator

@lg-epitech lg-epitech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good

@lg-epitech lg-epitech merged commit 461bf66 into main May 4, 2026
1 check passed
@lhnfe lhnfe deleted the lhnfe/dis-8-dockerize-application branch May 5, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants