🌟 We are Open Source! Check out our repository on GitHub

Docker Projects Structure

A scalable and maintainable folder structure for Docker projects

File Structure

  • src
    • app.js
    • package.json
  • Dockerfile
  • docker-compose.yml
  • .dockerignore
  • README.md

Directory Structure Explanation

src/

Contains the application source code that will be containerized.

Dockerfile

Defines the instructions for building the Docker image for the application.

docker-compose.yml

Defines multi-container Docker applications and their services, networks, and volumes.

.dockerignore

Specifies files and directories to exclude from the Docker build context.