Skip to content

feat: Add Docker support for the application#3

Merged
Codegres-com merged 1 commit intomainfrom
feature/docker-support
Sep 30, 2025
Merged

feat: Add Docker support for the application#3
Codegres-com merged 1 commit intomainfrom
feature/docker-support

Conversation

@Codegres-com
Copy link
Copy Markdown
Owner

This commit introduces comprehensive Docker support to streamline the development and deployment process.

Key changes include:

  • A Dockerfile that containerizes the application using the efficient node:20-alpine base image. It sets up the working directory, installs dependencies, and configures the application to run on container start.
  • A .dockerignore file to exclude unnecessary files like node_modules and .git from the build context, resulting in a smaller and more secure image.
  • A docker-compose.yml file to simplify running the application. It defines the service, manages environment variables with sensible defaults, maps ports, and configures named volumes for sessions and uploads to ensure data persistence across container restarts.
  • The README.md has been updated with a new "Running with Docker" section, providing clear, step-by-step instructions for getting the application running with both Docker Compose (recommended) and manual Docker commands. The commands have been updated to use the modern docker compose syntax.

This commit introduces comprehensive Docker support to streamline the development and deployment process.

Key changes include:
- A `Dockerfile` that containerizes the application using the efficient `node:20-alpine` base image. It sets up the working directory, installs dependencies, and configures the application to run on container start.
- A `.dockerignore` file to exclude unnecessary files like `node_modules` and `.git` from the build context, resulting in a smaller and more secure image.
- A `docker-compose.yml` file to simplify running the application. It defines the service, manages environment variables with sensible defaults, maps ports, and configures named volumes for `sessions` and `uploads` to ensure data persistence across container restarts.
- The `README.md` has been updated with a new "Running with Docker" section, providing clear, step-by-step instructions for getting the application running with both Docker Compose (recommended) and manual Docker commands. The commands have been updated to use the modern `docker compose` syntax.
@Codegres-com Codegres-com merged commit b7b5ccc into main Sep 30, 2025
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.

1 participant