{"id":15127775,"url":"https://github.com/adrianhajdin/docker-course","last_synced_at":"2025-04-04T13:07:45.414Z","repository":{"id":237447863,"uuid":"739388062","full_name":"adrianhajdin/docker-course","owner":"adrianhajdin","description":"Full Modern Docker Course","archived":false,"fork":false,"pushed_at":"2024-01-05T12:52:40.000Z","size":86,"stargazers_count":621,"open_issues_count":6,"forks_count":191,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-28T12:04:07.448Z","etag":null,"topics":["docker","docker-compose","docker-container","docker-image","dockerfile"],"latest_commit_sha":null,"homepage":"https://jsmastery.pro","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adrianhajdin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-05T12:52:15.000Z","updated_at":"2025-03-26T14:10:07.000Z","dependencies_parsed_at":"2024-05-02T00:57:22.062Z","dependency_job_id":"9188aa65-e4d9-44e4-b5f7-4d3cf01b4245","html_url":"https://github.com/adrianhajdin/docker-course","commit_stats":null,"previous_names":["adrianhajdin/docker-course"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianhajdin%2Fdocker-course","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianhajdin%2Fdocker-course/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianhajdin%2Fdocker-course/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianhajdin%2Fdocker-course/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrianhajdin","download_url":"https://codeload.github.com/adrianhajdin/docker-course/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247177708,"owners_count":20896703,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","docker-container","docker-image","dockerfile"],"created_at":"2024-09-26T02:05:25.760Z","updated_at":"2025-04-04T13:07:45.390Z","avatar_url":"https://github.com/adrianhajdin.png","language":"JavaScript","readme":"\u003cdiv align=\"center\"\u003e\n  \u003cbr /\u003e\n    \u003ca href=\"https://youtu.be/GFgJkfScVNU?feature=shared\" target=\"_blank\"\u003e\n      \u003cimg src=\"https://github.com/JavaScript-Mastery-Pro/docker-course/assets/151519281/983e334b-6f3a-47d1-8ea6-52139796da20\" alt=\"Project Banner\"\u003e\n    \u003c/a\u003e\n  \u003cbr /\u003e\n\n  \u003cdiv\u003e\n    \u003cimg src=\"https://img.shields.io/badge/-Node_JS-black?style=for-the-badge\u0026logoColor=white\u0026logo=nodedotjs\u0026color=339933\" alt=\"nodedotjs\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/-Next_JS-black?style=for-the-badge\u0026logoColor=white\u0026logo=nextdotjs\u0026color=000000\" alt=\"nextdotjs\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/-Docker-black?style=for-the-badge\u0026logoColor=white\u0026logo=docker\u0026color=2496ED\" alt=\"docker\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/-MongoDB-black?style=for-the-badge\u0026logoColor=white\u0026logo=mongodb\u0026color=47A248\" alt=\"mongodb\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/-Vite-black?style=for-the-badge\u0026logoColor=white\u0026logo=vite\u0026color=646CFF\" alt=\"vite\" /\u003e\n  \u003c/div\u003e\n\n  \u003ch3 align=\"center\"\u003eDocker Crash Course\u003c/h3\u003e\n\n   \u003cdiv align=\"center\"\u003e\n     Learn how to Dockerize various applications step by step with our detailed tutorial \n     on \u003ca href=\"https://www.youtube.com/@javascriptmastery/videos\" target=\"_blank\"\u003e\u003cb\u003eJavaScript Mastery\u003c/b\u003e\u003c/a\u003e YouTube. Join the JSM family!\n    \u003c/div\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n## 📋 \u003ca name=\"table\"\u003eTable of Contents\u003c/a\u003e\n\n1. 🤖 [Introduction](#introduction)\n2. ⚙️ [Tech Stack](#tech-stack)\n3. 🔋 [Features](#features)\n4. 🤸 [Quick Start](#quick-start)\n6. 📦 [Starter Kit](#starter-kits)\n7. 🕸️ [Code Snippets](#code-snippets)\n8. 🚀 [More](#more)\n\n\u003cbr /\u003e\n\n## 🚨 Tutorial\n\nThis repository contains the code corresponding to an in-depth tutorial available on our YouTube channel, \u003ca href=\"https://www.youtube.com/@javascriptmastery/videos\" target=\"_blank\"\u003e\u003cb\u003eJavaScript Mastery\u003c/b\u003e\u003c/a\u003e. \n\nIf you prefer visual learning, this is the perfect resource for you. Follow our tutorial to learn how to build projects like these step-by-step in a beginner-friendly manner!\n\n\u003ca href=\"https://youtu.be/GFgJkfScVNU?feature=shared\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/sujatagunale/EasyRead/assets/151519281/1736fca5-a031-4854-8c09-bc110e3bc16d\" /\u003e\u003c/a\u003e\n\n## \u003ca name=\"introduction\"\u003e🤖 Introduction\u003c/a\u003e\n\nLearn the process of containerizing frontend, backend, and database applications built with diverse tech stacks like React, Vue, Svelte, or any Vite projects. \nAdditionally, it covers examples of the containerization of complete full-stack applications, including MERN setups or the popular Monorepo full-stack applications using Next.js 14+. \n\nThis repository contains the corresponding code for all these dockerized applications using the latest Docker features, including docker-compose watch and init.\n\nIf you're getting started and need assistance or face any bugs, join our active Discord community with over 27k+ members. It's a place where people help each other out.\n\n\u003ca href=\"https://discord.com/invite/n6EdbFJ\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/sujatagunale/EasyRead/assets/151519281/618f4872-1e10-42da-8213-1d69e486d02e\" /\u003e\u003c/a\u003e\n\n## \u003ca name=\"tech-stack\"\u003e⚙️ Tech Stack\u003c/a\u003e\n\n- Docker\n- Node.js\n- React.js\n- Vite\n- MongoDB\n- Express.js\n- Next.js\n- Tailwind CSS\n\n## \u003ca name=\"features\"\u003e🔋 Features\u003c/a\u003e\n\n👉 **Fundamentals of Docker**: Understand the fundamentals of Docker, its purpose, and advantages.\n\n👉 **Managing Images and Containers with Docker Compose**: Explore Docker Compose for orchestrating multiple images and containers efficiently.\n\n👉 **Latest Docker Features**: Learn new features such as docker init, docker scout, and docker compose watch for enhanced development workflows.\n\n👉 **Working with Volumes**: Learn how to use volumes for persistent data management in Docker containers\n\n👉 **Port Mapping with Network**: Implement port mapping using Docker's networking capabilities\n\n👉 **Dockerizing React Applications with Vite**: Step-by-step guide on Dockerizing React applications built with Vite.\n\n👉 **Dockerizing Vite Applications (Vue or Svelte)**: Extend the knowledge to Dockerizing Vite applications, supporting Vue or Svelte frameworks.\n\n👉 **Dockerizing Full Stack Applications**: Dockerize a complete MERN stack application, covering frontend, backend, and database.\n\n👉 **Dockerizing Monorepo Full Stack Applications (Next.js 14+)**: Explore Dockerizing Monorepo full-stack applications using the latest features of Next.js (version 14 and above).\n\n👉 **Publishing Docker Images**: Learn the steps to publish Docker images, making your applications accessible to a broader audience.\n\n...and much more, covering the best practices and usage of different commands in 🐳\n\n## \u003ca name=\"quick-start\"\u003e🤸 Quick Start\u003c/a\u003e\n\nFollow these steps to set up the project locally on your machine.\n\n**Prerequisites**\n\nMake sure you have the following installed on your machine:\n\n- [Git](https://git-scm.com/)\n- [Node.js](https://nodejs.org/en)\n- [npm](https://www.npmjs.com/) (Node Package Manager)\n- [Docker](https://www.docker.com/products/docker-desktop/)\n- [MongoDB Compass](https://www.mongodb.com/products/tools/compass)\n\n**Cloning the Repository**\n\n```bash\ngit clone https://github.com/your-username/your-project.git\ncd your-project\n```\n\n**Installation**\n\nInstall the project dependencies using npm:\n\n```bash\nnpm install\n```\n\n**Set Up Environment Variables**\n\nFor a few specific applications, we require environment variables. I've included a sample .env.example file for these essential projects. \nHowever, one crucial element needed for these projects is,\n\n```env\nDB_URL=\n```\n\nFor full stack applications, we'll be using MongoDB as a database. So do create an account on [MongoDB Atlas](https://www.mongodb.com/) as well as \ninstall [MongoDB Compass](https://www.mongodb.com/products/tools/compass) for creating local database instance for the project. \n\n**Running the Project**\n\n```bash\nnpm start\n```\n\nOpen [http://localhost:3000](http://localhost:3000) in your browser to view the project.\n\n## \u003ca name=\"starter-kits\"\u003e📦 Starter Kits\u003c/a\u003e\n\nGet the starter kits for a few corresponding applications used in the project\n* MERN Demo - [Download Kit](https://drive.google.com/file/d/15Yqkb6rNPv6DEfT6zuIHDKchzGkOUblZ/view?usp=sharing)\n* Next.js Demo - [Download Kit](https://drive.google.com/file/d/1edSiwP0AwtKblE5y-ZlzIGfq2lcDJBPF/view?usp=sharing)\n\n## \u003ca name=\"code-snippets\"\u003e🕸️ Code Snippets\u003c/a\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003ehello-docker/Dockerfile\u003c/code\u003e\u003c/summary\u003e\n\n```dockerfile\n# select the base image to run the app. We want to run a javascript app, so we use the node runtime image from docker hub\n# we can use any image from docker hub. We can also use a custom image that we have created\n# node:20-alpine -\u003e node is the image name, 20-alpine is the tag\n# alpine is a lightweight version of linux\n# we can see complete list of node image tags here: https://hub.docker.com/_/node\nFROM node:20-alpine\n\n# set the working directory to /app. This is the directory where the commands will be run. We can use any directory name but /app is a standard convention\nWORKDIR /app\n\n# copy everything from the current directory to the PWD (Present Working Directory) inside the container. \n# First `.` is the path to the current directory on the host machine. Second `.` is the path to the current directory inside the container i.e., source and destination\n# source - current directory on the host machine\n# destination - current directory inside the container (/app)\nCOPY . .\n\n# commands to run the app\nCMD node hello.js\n\n# build the image\n# docker build -t hello-docker .\n    # -t -\u003e tag the image with a name\n    # hello-docker -\u003e name of the image\n    # . -\u003e path to the Dockerfile\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003ereact-docker/Dockerfile\u003c/code\u003e\u003c/summary\u003e\n\n```dockerfile\n# set the base image to create the image for react app\nFROM node:20-alpine\n\n# create a user with permissions to run the app\n# -S -\u003e create a system user\n# -G -\u003e add the user to a group\n# This is done to avoid running the app as root\n# If the app is run as root, any vulnerability in the app can be exploited to gain access to the host system\n# It's a good practice to run the app as a non-root user\nRUN addgroup app \u0026\u0026 adduser -S -G app app\n\n# set the user to run the app\nUSER app\n\n# set the working directory to /app\nWORKDIR /app\n\n# copy package.json and package-lock.json to the working directory\n# This is done before copying the rest of the files to take advantage of Docker’s cache\n# If the package.json and package-lock.json files haven’t changed, Docker will use the cached dependencies\nCOPY package*.json ./\n\n# sometimes the ownership of the files in the working directory is changed to root\n# and thus the app can't access the files and throws an error -\u003e EACCES: permission denied\n# to avoid this, change the ownership of the files to the root user\nUSER root\n\n# change the ownership of the /app directory to the app user\n# chown -R \u003cuser\u003e:\u003cgroup\u003e \u003cdirectory\u003e\n# chown command changes the user and/or group ownership of for given file.\nRUN chown -R app:app .\n\n# change the user back to the app user\nUSER app\n\n# install dependencies\nRUN npm install\n\n# copy the rest of the files to the working directory\nCOPY . .\n\n# expose port 5173 to tell Docker that the container listens on the specified network ports at runtime\nEXPOSE 5173\n\n# command to run the app\nCMD npm run dev\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003evite-docker/Dockerfile\u003c/code\u003e\u003c/summary\u003e\n\n```dockerfile\n# set the base image to create the image for react app\nFROM node:20-alpine\n\n# create a user with permissions to run the app\n# -S -\u003e create a system user\n# -G -\u003e add the user to a group\n# This is done to avoid running the app as root\n# If the app is run as root, any vulnerability in the app can be exploited to gain access to the host system\n# It's a good practice to run the app as a non-root user\nRUN addgroup app \u0026\u0026 adduser -S -G app app\n\n# set the user to run the app\nUSER app\n\n# set the working directory to /app\nWORKDIR /app\n\n# copy package.json and package-lock.json to the working directory\n# This is done before copying the rest of the files to take advantage of Docker’s cache\n# If the package.json and package-lock.json files haven’t changed, Docker will use the cached dependencies\nCOPY package*.json ./\n\n# sometimes the ownership of the files in the working directory is changed to root\n# and thus the app can't access the files and throws an error -\u003e EACCES: permission denied\n# to avoid this, change the ownership of the files to the root user\nUSER root\n\n# change the ownership of the /app directory to the app user\n# chown -R \u003cuser\u003e:\u003cgroup\u003e \u003cdirectory\u003e\n# chown command changes the user and/or group ownership of for given file.\nRUN chown -R app:app .\n\n# change the user back to the app user\nUSER app\n\n# install dependencies\nRUN npm install\n\n# copy the rest of the files to the working directory\nCOPY . .\n\n# expose port 5173 to tell Docker that the container listens on the specified network ports at runtime\nEXPOSE 5173\n\n# command to run the app\nCMD npm run dev\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003evite-docker/compose.yaml\u003c/code\u003e\u003c/summary\u003e\n\n```yaml\n# define the services/containers to be run\nservices:\n  # define the application container/service\n  # we can use any name for the service. Here it is `web`\n  # we can create multiple services as well\n  web:\n    # specify the image to build the container from\n    # this can be any image available in docker hub or a custom one or the one we want to build\n    build:\n      # specify the path to the Dockerfile\n      context: .\n      # specify the file name (optional)\n      dockerfile: Dockerfile\n    \n    # specify the port mapping from host to the container\n    # this is similar to the -p flag in `docker run` command\n    # first port is the port on host machine and the second is the port inside the container\n    ports:\n      - 5173:5173\n\n    # specify the volumes to mount\n    # what this does is it mounts the current directory to the `/app` directory inside the container. \n    # due to this, any changes made to the files in the current directory will be reflected inside the container. It is similar to the -v flag in `docker run` command. \n    # even if a container is stopped or deleted, volumes are not deleted and can be used by other containers as well.\n    volumes:\n      # over here, we are mounting the current directory to the `/app` directory inside the container (which is the working directory of the container)\n      # syntax is `\u003cpath to the directory on host\u003e:\u003cpath to the directory inside the container\u003e`\n      # we're doing this because we want to reflect the changes made to the files in the current directory inside the container\n      - .:/app\n      # we also mount the node_modules directory inside the container at /app/node_modules. This is done to avoid installing the node_modules inside the container. \n      # node_modules will be installed on the host machine and mounted inside the container\n      - /app/node_modules\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003emern-docker/frontend/Dockerfile\u003c/code\u003e\u003c/summary\u003e\n\n```dockerfile\nFROM node:20-alpine3.18\n\n# RUN addgroup app \u0026\u0026 adduser -S -G app app\n\n# USER app\n\nWORKDIR /app\n\nCOPY package*.json ./\n\n# USER root\n\n# RUN chown -R app:app .\n\n# USER app\n\nRUN npm install\n\nCOPY . .\n\nEXPOSE 5173\n\nCMD npm run dev\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003emern-docker/backend/Dockerfile\u003c/code\u003e\u003c/summary\u003e\n\n```dockerfile\nFROM node:20-alpine3.18\n\nRUN addgroup app \u0026\u0026 adduser -S -G app app\n\nUSER app\n\nWORKDIR /app\n\nCOPY package*.json ./\n\n# change ownership of the /app directory to the app user\nUSER root\n\n# change ownership of the /app directory to the app user\n# chown -R \u003cuser\u003e:\u003cgroup\u003e \u003cdirectory\u003e\n# chown command changes the user and/or group ownership of for given file.\nRUN chown -R app:app .\n\n# change the user back to the app user\nUSER app\n\nRUN npm install\n\nCOPY . . \n\nEXPOSE 8000 \n\nCMD npm start\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003emern-docker/compose.yaml\u003c/code\u003e\u003c/summary\u003e\n\n```yaml\n# specify the version of docker-compose\nversion: \"3.8\"\n\n# define the services/containers to be run\nservices:\n  # define the frontend service\n  # we can use any name for the service. A standard naming convention is to use \"web\" for the frontend\n  web:\n    # we use depends_on to specify that service depends on another service\n    # in this case, we specify that the web depends on the api service\n    # this means that the api service will be started before the web service\n    depends_on: \n      - api\n    # specify the build context for the web service\n    # this is the directory where the Dockerfile for the web service is located\n    build: ./frontend\n    # specify the ports to expose for the web service\n    # the first number is the port on the host machine\n    # the second number is the port inside the container\n    ports:\n      - 5173:5173\n    # specify the environment variables for the web service\n    # these environment variables will be available inside the container\n    environment:\n      VITE_API_URL: http://localhost:8000\n\n    # this is for docker compose watch mode\n    # anything mentioned under develop will be watched for changes by docker compose watch and it will perform the action mentioned\n    develop:\n      # we specify the files to watch for changes\n      watch:\n        # it'll watch for changes in package.json and package-lock.json and rebuild the container if there are any changes\n        - path: ./frontend/package.json\n          action: rebuild\n        - path: ./frontend/package-lock.json\n          action: rebuild\n        # it'll watch for changes in the frontend directory and sync the changes with the container real time\n        - path: ./frontend\n          target: /app\n          action: sync\n\n  # define the api service/container\n  api: \n    # api service depends on the db service so the db service will be started before the api service\n    depends_on: \n      - db\n\n    # specify the build context for the api service\n    build: ./backend\n    \n    # specify the ports to expose for the api service\n    # the first number is the port on the host machine\n    # the second number is the port inside the container\n    ports: \n      - 8000:8000\n\n    # specify environment variables for the api service\n    # for demo purposes, we're using a local mongodb instance\n    environment: \n      DB_URL: mongodb://db/anime\n    \n    # establish docker compose watch mode for the api service\n    develop:\n      # specify the files to watch for changes\n      watch:\n        # it'll watch for changes in package.json and package-lock.json and rebuild the container and image if there are any changes\n        - path: ./backend/package.json\n          action: rebuild\n        - path: ./backend/package-lock.json\n          action: rebuild\n        \n        # it'll watch for changes in the backend directory and sync the changes with the container real time\n        - path: ./backend\n          target: /app\n          action: sync\n\n  # define the db service\n  db:\n    # specify the image to use for the db service from docker hub. If we have a custom image, we can specify that in this format\n    # In the above two services, we're using the build context to build the image for the service from the Dockerfile so we specify the image as \"build: ./frontend\" or \"build: ./backend\".\n    # but for the db service, we're using the image from docker hub so we specify the image as \"image: mongo:latest\"\n    # you can find the image name and tag for mongodb from docker hub here: https://hub.docker.com/_/mongo\n    image: mongo:latest\n\n    # specify the ports to expose for the db service\n    # generally, we do this in api service using mongodb atlas. But for demo purposes, we're using a local mongodb instance\n    # usually, mongodb runs on port 27017. So we're exposing the port 27017 on the host machine and mapping it to the port 27017 inside the container\n    ports:\n      - 27017:27017\n\n    # specify the volumes to mount for the db service\n    # we're mounting the volume named \"anime\" inside the container at /data/db directory\n    # this is done so that the data inside the mongodb container is persisted even if the container is stopped\n    volumes:\n      - anime:/data/db\n\n# define the volumes to be used by the services\nvolumes:\n  anime:\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003enext-docker/Dockerfile\u003c/code\u003e\u003c/summary\u003e\n\n```dockerfile\n# inherit from a existing image to add the functionality\nFROM node:20-alpine3.18\n\n# RUN addgroup app \u0026\u0026 adduser -S -G app app\n# USER app\n\n# Set the working directory and assign ownership to the non-root user\nWORKDIR /app\n\n# Copy the package.json and package-lock.json files into the image.\nCOPY package*.json ./\n\n# change ownership of the /app directory to the app user\n# USER root\n\n# change ownership of the /app directory to the app user\n# chown -R \u003cuser\u003e:\u003cgroup\u003e \u003cdirectory\u003e\n# chown command changes the user and/or group ownership of for given file.\n# RUN chown -R app:app .\n\n# change the user back to the app user\n# USER app\n\n# Install the dependencies.\nRUN npm install\n\n# Copy the rest of the source files into the image.\nCOPY . .\n\n# Expose the port that the application listens on.\nEXPOSE 3000\n\n# Run the application.\nCMD npm run dev\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003enext-docker/compose.yaml\u003c/code\u003e\u003c/summary\u003e\n\n```yaml\nversion: '3.8'\n\nservices:\n  frontend:\n    # uncomment the following line if you want to run a local instance of MongoDB\n    # depends_on:\n    #   - db\n    build:\n      context: .\n      dockerfile: Dockerfile\n    \n    # do port mapping so that we can access the app from the browser\n    ports:\n      - 3000:3000\n    \n    # use docker compose to watch for changes and rebuild the container\n    develop:\n      watch:\n        - path: ./package.json\n          action: rebuild\n        - path: ./next.config.js\n          action: rebuild\n        - path: ./package-lock.json\n          action: rebuild\n        - path: .\n          target: /app\n          action: sync\n    \n    # define the environment variables\n    environment:\n      # we're using MongoDB atlas so we need to pass in the connection string\n      DB_URL: mongodb+srv://sujata:rnZzJjIDr3bIDymV@cluster0.hnn88vs.mongodb.net/ \n\n  # we're using MongoDB atlas so we don't need to run a local instance of MongoDB\n  # but if you want to run a local instance, you can do it this way\n  # db:\n  #   image: mongo\n  #   ports:\n  #     - 27017:27017\n  #   environment:\n  #     - MONGO_INITDB_ROOT_USERNAME=sujata\n  #     - MONGO_INITDB_ROOT_PASSWORD=rnZzJjIDr3bIDymV\n  #   volumes:\n  #     - tasked:/data/db\n    \nvolumes:\n  tasked:\n```\n\n\u003c/details\u003e\n\n## \u003ca name=\"more\"\u003e🚀 More\u003c/a\u003e\n\n**Advance your skills with Next.js 14 Pro Course**\n\nEnjoyed creating this project? Dive deeper into our PRO courses for a richer learning adventure. They're packed with detailed explanations, cool features, and exercises to boost your skills. Give it a go!\n\n\u003ca href=\"https://jsmastery.pro/next14\" target=\"_blank\"\u003e\n\u003cimg src=\"https://github.com/sujatagunale/EasyRead/assets/151519281/557837ce-f612-4530-ab24-189e75133c71\" alt=\"Project Banner\"\u003e\n\u003c/a\u003e\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n**Accelerate your professional journey with the Expert Training program**\n\nAnd if you're hungry for more than just a course and want to understand how we learn and tackle tech challenges, hop into our personalized masterclass. We cover best practices, different web skills, and offer mentorship to boost your confidence. Let's learn and grow together!\n\n\u003ca href=\"https://www.jsmastery.pro/masterclass\" target=\"_blank\"\u003e\n\u003cimg src=\"https://github.com/sujatagunale/EasyRead/assets/151519281/fed352ad-f27b-400d-9b8f-c7fe628acb84\" alt=\"Project Banner\"\u003e\n\u003c/a\u003e\n\n#\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianhajdin%2Fdocker-course","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrianhajdin%2Fdocker-course","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianhajdin%2Fdocker-course/lists"}