[{"data":1,"prerenderedAt":-1,"buildId":1319},["ShallowReactive",2],{"$9oPIbGgjrk":3,"blog-\u002Fblog\u002Fdockerizing-a-nuxt-app":52,"blog-similar-posts-\u002Fblog\u002Fdockerizing-a-nuxt-app":797,"blog-surrounding-\u002Fblog\u002Fdockerizing-a-nuxt-app":818,"blogToc-\u002Fblog\u002Fdockerizing-a-nuxt-app":825},{"id":4,"extension":5,"items":6,"meta":49,"stem":50,"__hash__":51},"menu\u002Fmenu.json","json",[7,12,16,20,24,28,32,36,41,45],{"i18nId":8,"to":9,"ariaLabel":10,"mainNavigation":11},"components.menu.home","\u002F","Home",true,{"i18nId":13,"to":14,"ariaLabel":15,"mainNavigation":11},"components.menu.about","\u002Fhire-me","About",{"i18nId":17,"to":18,"ariaLabel":19,"mainNavigation":11},"components.menu.testimonials","\u002Ftestimonials","Testimonials",{"i18nId":21,"to":22,"ariaLabel":23},"components.menu.contact","\u002Fcontact","Contact",{"i18nId":25,"to":26,"ariaLabel":27,"mainNavigation":11},"components.menu.blog","\u002Fblog","Blog",{"i18nId":29,"to":30,"ariaLabel":31,"mainNavigation":11},"components.menu.tips","\u002Fvue-tips","Vue Tips",{"i18nId":33,"to":34,"ariaLabel":35,"mainNavigation":11},"components.menu.projects","\u002Fprojects","Projects",{"i18nId":37,"to":38,"ariaLabel":39,"mainNavigation":40},"components.menu.stats","\u002Fstats","stats",false,{"i18nId":42,"to":43,"ariaLabel":44,"mainNavigation":40},"components.menu.businessCard","\u002Fbusiness-card","Business Card",{"i18nId":46,"to":47,"ariaLabel":48,"mainNavigation":40},"components.menu.publications","\u002Fpublications","Publications",{},"menu","njLT1QoRt2Dv8QWoVmH8xdTAiDywSj0bxBQdmoyWUE0",{"id":53,"title":54,"body":55,"categories":777,"cover":781,"date":782,"description":783,"extension":784,"lastUpdated":785,"meta":786,"navigation":11,"ogImage":785,"path":787,"readingTime":788,"robots":785,"schemaOrg":785,"seo":793,"sitemap":794,"stem":795,"tags":785,"__hash__":796},"blog\u002Fblog\u002Fdockerizing-a-nuxt-app\u002Findex.md","Dockerizing a Nuxt App: A Comprehensive Guide",{"type":56,"value":57,"toc":768},"minimark",[58,69,72,77,80,109,113,116,150,154,157,204,211,215,222,228,554,558,564,587,597,600,620,630,634,637,644,717,723,736,740,743,746,755,764],[59,60,61,68],"p",{},[62,63,67],"a",{"href":64,"rel":65},"https:\u002F\u002Fwww.docker.com\u002F",[66],"nofollow","Docker"," has revolutionized the way developers build, ship, and run applications by providing a consistent environment for development, testing, and production.",[59,70,71],{},"In this guide, I'll walk you through the steps to dockerize a Nuxt 3+ application, enabling you to create a containerized version of your app that can be easily deployed across different environments.",[73,74,76],"h2",{"id":75},"why-dockerize-your-nuxt-app","Why Dockerize Your Nuxt App?",[59,78,79],{},"Before we dive into the details, let's discuss why you might want to dockerize your Nuxt 3 app:",[81,82,83,91,97,103],"ol",{},[84,85,86,90],"li",{},[87,88,89],"strong",{},"Consistency",": Docker ensures that your application runs the same way on any machine, eliminating the \"works on my machine\" problem.",[84,92,93,96],{},[87,94,95],{},"Isolation",": Each application runs in its own container, isolated from other applications and their dependencies.",[84,98,99,102],{},[87,100,101],{},"Scalability",": Docker makes it easier to scale your applications horizontally by running multiple containers.",[84,104,105,108],{},[87,106,107],{},"Portability",": Docker containers can run on any system that supports Docker, making it easy to move applications between environments.",[73,110,112],{"id":111},"prerequisites","Prerequisites",[59,114,115],{},"To follow along with this guide, you'll need the following:",[117,118,119,141,144,147],"ul",{},[84,120,121,122,127,128,132,133,136,137,140],{},"I'm using ",[62,123,126],{"href":124,"rel":125},"https:\u002F\u002Fpnpm.io\u002F",[66],"pnpm"," as the package manager in this guide, but you can use ",[129,130,131],"code",{},"npm",", ",[129,134,135],{},"yarn"," or ",[129,138,139],{},"bun"," if you prefer.",[84,142,143],{},"Basic knowledge of Docker and Docker Compose.",[84,145,146],{},"A Nuxt 3+ application.",[84,148,149],{},"Docker installed on your machine.",[73,151,153],{"id":152},"step-1-set-up-your-nuxt-3-application","Step 1: Set Up Your Nuxt 3 Application",[59,155,156],{},"If you don't have a Nuxt 3+ app already, create one using the following commands:",[158,159,164],"pre",{"className":160,"code":161,"language":162,"meta":163,"style":163},"language-bash shiki shiki-themes github-light poimandres poimandres","pnpm dlx nuxi@latest init my-nuxt-app\ncd my-nuxt-app\npnpm install\n","bash","",[129,165,166,187,196],{"__ignoreMap":163},[167,168,171,174,178,181,184],"span",{"class":169,"line":170},"line",1,[167,172,126],{"class":173},"sgaD9",[167,175,177],{"class":176},"sMmyg"," dlx",[167,179,180],{"class":176}," nuxi@latest",[167,182,183],{"class":176}," init",[167,185,186],{"class":176}," my-nuxt-app\n",[167,188,190,194],{"class":169,"line":189},2,[167,191,193],{"class":192},"sDR3q","cd",[167,195,186],{"class":176},[167,197,199,201],{"class":169,"line":198},3,[167,200,126],{"class":173},[167,202,203],{"class":176}," install\n",[59,205,206,207,210],{},"This will create a new Nuxt 3+ application in the ",[129,208,209],{},"my-nuxt-app"," directory and install all the necessary dependencies.",[73,212,214],{"id":213},"step-2-create-a-dockerfile","Step 2: Create a Dockerfile",[59,216,217,218,221],{},"In the root of your Nuxt 3+ application, create a file named ",[129,219,220],{},"Dockerfile",". This file will define the environment and the steps needed to run your application inside a Docker container.",[59,223,224,225,227],{},"Here's an example ",[129,226,220],{}," for a Nuxt 3+ application:",[158,229,233],{"className":230,"code":231,"filename":220,"language":232,"meta":163,"style":163},"language-dockerfile shiki shiki-themes github-light poimandres poimandres","ARG NODE_VERSION=20.14.0\n\n# Create build stage\nFROM node:${NODE_VERSION}-slim AS build\n\n# Enable pnpm\nENV PNPM_HOME=\"\u002Fpnpm\"\nENV PATH=\"$PNPM_HOME:$PATH\"\nRUN corepack enable\n\n# Set the working directory inside the container\nWORKDIR \u002Fapp\n\n# Copy package.json and pnpm-lock.yaml files to the working directory\nCOPY .\u002Fpackage.json \u002Fapp\u002F\nCOPY .\u002Fpnpm-lock.yaml \u002Fapp\u002F\n\n## Install dependencies\nRUN pnpm install --shamefully-hoist\n\n# Copy the rest of the application files to the working directory\nCOPY . .\u002F\n\n# Build the application\nRUN pnpm run build\n\n# Create a new stage for the production image\nFROM node:${NODE_VERSION}-slim\n\n# Set the working directory inside the container\nWORKDIR \u002Fapp\n\n# Copy the output from the build stage to the working directory\nCOPY --from=build \u002Fapp\u002F.output .\u002F\n\n# Define environment variables\nENV HOST=0.0.0.0 NODE_ENV=production\nENV NODE_ENV=production\n\n# Expose the port the application will run on\nEXPOSE 3000\n\n# Start the application\nCMD [\"node\",\"\u002Fapp\u002Fserver\u002Findex.mjs\"]\n","dockerfile",[129,234,235,245,250,256,271,276,282,295,306,315,320,326,335,340,346,355,363,368,374,382,387,393,401,406,412,420,425,431,439,444,449,456,461,467,475,480,486,494,502,507,513,522,527,533],{"__ignoreMap":163},[167,236,237,241],{"class":169,"line":170},[167,238,240],{"class":239},"sRZEA","ARG",[167,242,244],{"class":243},"sygvE"," NODE_VERSION=20.14.0\n",[167,246,247],{"class":169,"line":189},[167,248,249],{"emptyLinePlaceholder":11},"\n",[167,251,252],{"class":169,"line":198},[167,253,255],{"class":254},"s1MN7","# Create build stage\n",[167,257,259,262,265,268],{"class":169,"line":258},4,[167,260,261],{"class":239},"FROM",[167,263,264],{"class":243}," node:${NODE_VERSION}-slim ",[167,266,267],{"class":239},"AS",[167,269,270],{"class":243}," build\n",[167,272,274],{"class":169,"line":273},5,[167,275,249],{"emptyLinePlaceholder":11},[167,277,279],{"class":169,"line":278},6,[167,280,281],{"class":254},"# Enable pnpm\n",[167,283,285,288,291],{"class":169,"line":284},7,[167,286,287],{"class":239},"ENV",[167,289,290],{"class":243}," PNPM_HOME=",[167,292,294],{"class":293},"skTdI","\"\u002Fpnpm\"\n",[167,296,298,300,303],{"class":169,"line":297},8,[167,299,287],{"class":239},[167,301,302],{"class":243}," PATH=",[167,304,305],{"class":293},"\"$PNPM_HOME:$PATH\"\n",[167,307,309,312],{"class":169,"line":308},9,[167,310,311],{"class":239},"RUN",[167,313,314],{"class":243}," corepack enable\n",[167,316,318],{"class":169,"line":317},10,[167,319,249],{"emptyLinePlaceholder":11},[167,321,323],{"class":169,"line":322},11,[167,324,325],{"class":254},"# Set the working directory inside the container\n",[167,327,329,332],{"class":169,"line":328},12,[167,330,331],{"class":239},"WORKDIR",[167,333,334],{"class":243}," \u002Fapp\n",[167,336,338],{"class":169,"line":337},13,[167,339,249],{"emptyLinePlaceholder":11},[167,341,343],{"class":169,"line":342},14,[167,344,345],{"class":254},"# Copy package.json and pnpm-lock.yaml files to the working directory\n",[167,347,349,352],{"class":169,"line":348},15,[167,350,351],{"class":239},"COPY",[167,353,354],{"class":243}," .\u002Fpackage.json \u002Fapp\u002F\n",[167,356,358,360],{"class":169,"line":357},16,[167,359,351],{"class":239},[167,361,362],{"class":243}," .\u002Fpnpm-lock.yaml \u002Fapp\u002F\n",[167,364,366],{"class":169,"line":365},17,[167,367,249],{"emptyLinePlaceholder":11},[167,369,371],{"class":169,"line":370},18,[167,372,373],{"class":254},"## Install dependencies\n",[167,375,377,379],{"class":169,"line":376},19,[167,378,311],{"class":239},[167,380,381],{"class":243}," pnpm install --shamefully-hoist\n",[167,383,385],{"class":169,"line":384},20,[167,386,249],{"emptyLinePlaceholder":11},[167,388,390],{"class":169,"line":389},21,[167,391,392],{"class":254},"# Copy the rest of the application files to the working directory\n",[167,394,396,398],{"class":169,"line":395},22,[167,397,351],{"class":239},[167,399,400],{"class":243}," . .\u002F\n",[167,402,404],{"class":169,"line":403},23,[167,405,249],{"emptyLinePlaceholder":11},[167,407,409],{"class":169,"line":408},24,[167,410,411],{"class":254},"# Build the application\n",[167,413,415,417],{"class":169,"line":414},25,[167,416,311],{"class":239},[167,418,419],{"class":243}," pnpm run build\n",[167,421,423],{"class":169,"line":422},26,[167,424,249],{"emptyLinePlaceholder":11},[167,426,428],{"class":169,"line":427},27,[167,429,430],{"class":254},"# Create a new stage for the production image\n",[167,432,434,436],{"class":169,"line":433},28,[167,435,261],{"class":239},[167,437,438],{"class":243}," node:${NODE_VERSION}-slim\n",[167,440,442],{"class":169,"line":441},29,[167,443,249],{"emptyLinePlaceholder":11},[167,445,447],{"class":169,"line":446},30,[167,448,325],{"class":254},[167,450,452,454],{"class":169,"line":451},31,[167,453,331],{"class":239},[167,455,334],{"class":243},[167,457,459],{"class":169,"line":458},32,[167,460,249],{"emptyLinePlaceholder":11},[167,462,464],{"class":169,"line":463},33,[167,465,466],{"class":254},"# Copy the output from the build stage to the working directory\n",[167,468,470,472],{"class":169,"line":469},34,[167,471,351],{"class":239},[167,473,474],{"class":243}," --from=build \u002Fapp\u002F.output .\u002F\n",[167,476,478],{"class":169,"line":477},35,[167,479,249],{"emptyLinePlaceholder":11},[167,481,483],{"class":169,"line":482},36,[167,484,485],{"class":254},"# Define environment variables\n",[167,487,489,491],{"class":169,"line":488},37,[167,490,287],{"class":239},[167,492,493],{"class":243}," HOST=0.0.0.0 NODE_ENV=production\n",[167,495,497,499],{"class":169,"line":496},38,[167,498,287],{"class":239},[167,500,501],{"class":243}," NODE_ENV=production\n",[167,503,505],{"class":169,"line":504},39,[167,506,249],{"emptyLinePlaceholder":11},[167,508,510],{"class":169,"line":509},40,[167,511,512],{"class":254},"# Expose the port the application will run on\n",[167,514,516,519],{"class":169,"line":515},41,[167,517,518],{"class":239},"EXPOSE",[167,520,521],{"class":243}," 3000\n",[167,523,525],{"class":169,"line":524},42,[167,526,249],{"emptyLinePlaceholder":11},[167,528,530],{"class":169,"line":529},43,[167,531,532],{"class":254},"# Start the application\n",[167,534,536,539,542,545,548,551],{"class":169,"line":535},44,[167,537,538],{"class":239},"CMD",[167,540,541],{"class":243}," [",[167,543,544],{"class":293},"\"node\"",[167,546,547],{"class":243},",",[167,549,550],{"class":293},"\"\u002Fapp\u002Fserver\u002Findex.mjs\"",[167,552,553],{"class":243},"]\n",[73,555,557],{"id":556},"step-3-build-and-run-the-docker-image","Step 3: Build and Run the Docker Image",[59,559,560,561,563],{},"With the ",[129,562,220],{}," in place, you can build the Docker image using the following command:",[158,565,567],{"className":160,"code":566,"language":162,"meta":163,"style":163},"docker build -t my-nuxt-app .\n",[129,568,569],{"__ignoreMap":163},[167,570,571,574,577,581,584],{"class":169,"line":170},[167,572,573],{"class":173},"docker",[167,575,576],{"class":176}," build",[167,578,580],{"class":579},"snkik"," -t",[167,582,583],{"class":176}," my-nuxt-app",[167,585,586],{"class":176}," .\n",[59,588,589,590,592,593,596],{},"This command tells Docker to build an image with the tag ",[129,591,209],{}," using the current directory (denoted by the ",[129,594,595],{},".",").",[59,598,599],{},"Once the image is built, you can run a container using the following command:",[158,601,603],{"className":160,"code":602,"language":162,"meta":163,"style":163},"docker run -p 3000:3000 my-nuxt-app\n",[129,604,605],{"__ignoreMap":163},[167,606,607,609,612,615,618],{"class":169,"line":170},[167,608,573],{"class":173},[167,610,611],{"class":176}," run",[167,613,614],{"class":579}," -p",[167,616,617],{"class":176}," 3000:3000",[167,619,186],{"class":176},[59,621,622,623,625,626,629],{},"This command runs the ",[129,624,209],{}," container and maps port 3000 on your host machine to port 3000 inside the container. You should now be able to access your Nuxt 3 application by navigating to ",[129,627,628],{},"http:\u002F\u002Flocalhost:3000"," in your web browser.",[73,631,633],{"id":632},"step-4-using-docker-compose-optional","Step 4: Using Docker Compose (Optional)",[59,635,636],{},"For more complex applications with multiple services (e.g., a database and a web server), you can use Docker Compose to define and run multi-container Docker applications.",[59,638,639,640,643],{},"Create a ",[129,641,642],{},"docker-compose.yml"," file in the root of your project:",[158,645,649],{"className":646,"code":647,"language":648,"meta":163,"style":163},"language-yaml shiki shiki-themes github-light poimandres poimandres","version: '3'\nservices:\n  web:\n    build: .\n    ports:\n      - \"3000:3000\"\n","yaml",[129,650,651,670,678,685,696,703],{"__ignoreMap":163},[167,652,653,657,660,664,667],{"class":169,"line":170},[167,654,656],{"class":655},"s8PnL","version",[167,658,659],{"class":243},": ",[167,661,663],{"class":662},"srEIG","'",[167,665,666],{"class":293},"3",[167,668,669],{"class":662},"'\n",[167,671,672,675],{"class":169,"line":189},[167,673,674],{"class":655},"services",[167,676,677],{"class":243},":\n",[167,679,680,683],{"class":169,"line":198},[167,681,682],{"class":655},"  web",[167,684,677],{"class":243},[167,686,687,690,692],{"class":169,"line":258},[167,688,689],{"class":655},"    build",[167,691,659],{"class":243},[167,693,695],{"class":694},"s6g4C",".\n",[167,697,698,701],{"class":169,"line":273},[167,699,700],{"class":655},"    ports",[167,702,677],{"class":243},[167,704,705,708,711,714],{"class":169,"line":278},[167,706,707],{"class":243},"      - ",[167,709,710],{"class":662},"\"",[167,712,713],{"class":293},"3000:3000",[167,715,716],{"class":662},"\"\n",[59,718,719,720,722],{},"With this ",[129,721,642],{}," file, you can build and run your multi-container application using a single command:",[158,724,726],{"className":160,"code":725,"language":162,"meta":163,"style":163},"docker-compose up\n",[129,727,728],{"__ignoreMap":163},[167,729,730,733],{"class":169,"line":170},[167,731,732],{"class":173},"docker-compose",[167,734,735],{"class":176}," up\n",[73,737,739],{"id":738},"conclusion","Conclusion",[59,741,742],{},"Dockerizing your Nuxt 3 application provides numerous benefits, including consistency, isolation, scalability, and portability.",[59,744,745],{},"By following this guide, you can easily create a Docker container for your Nuxt 3+ app and run it in any environment that supports Docker. Whether you're a solo developer or part of a larger team, Docker can help streamline your development workflow and simplify deployment processes.",[59,747,748,749,754],{},"If you liked this article, follow me on ",[62,750,753],{"href":751,"rel":752},"https:\u002F\u002Fx.com\u002Fmokkapps",[66],"X"," to get notified about my new blog posts and more content.",[59,756,757,758,763],{},"Alternatively (or additionally), you can ",[62,759,762],{"href":760,"rel":761},"https:\u002F\u002Fweekly-vue.news",[66],"subscribe to my weekly Vue & Nuxt newsletter",":",[765,766,767],"style",{},"html pre.shiki code .sgaD9, html code.shiki .sgaD9{--shiki-light:#6F42C1;--shiki-default:#91B4D5;--shiki-dark:#91B4D5}html pre.shiki code .sMmyg, html code.shiki .sMmyg{--shiki-light:#032F62;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}html pre.shiki code .sDR3q, html code.shiki .sDR3q{--shiki-light:#005CC5;--shiki-default:#91B4D5;--shiki-dark:#91B4D5}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .snkik, html code.shiki .snkik{--shiki-light:#005CC5;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}html pre.shiki code .sRZEA, html code.shiki .sRZEA{--shiki-light:#D73A49;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .sygvE, html code.shiki .sygvE{--shiki-light:#24292E;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .s1MN7, html code.shiki .s1MN7{--shiki-light:#6A737D;--shiki-light-font-style:inherit;--shiki-default:#767C9DB0;--shiki-default-font-style:italic;--shiki-dark:#767C9DB0;--shiki-dark-font-style:italic}html pre.shiki code .skTdI, html code.shiki .skTdI{--shiki-light:#032F62;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .s8PnL, html code.shiki .s8PnL{--shiki-light:#22863A;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .srEIG, html code.shiki .srEIG{--shiki-light:#032F62;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .s6g4C, html code.shiki .s6g4C{--shiki-light:#005CC5;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}",{"title":163,"searchDepth":189,"depth":189,"links":769},[770,771,772,773,774,775,776],{"id":75,"depth":189,"text":76},{"id":111,"depth":189,"text":112},{"id":152,"depth":189,"text":153},{"id":213,"depth":189,"text":214},{"id":556,"depth":189,"text":557},{"id":632,"depth":189,"text":633},{"id":738,"depth":189,"text":739},[778,779,780],"development","frontend","nuxt-js","blog\u002Fdockerizing-a-nuxt-app\u002Fog.png","2024-07-09","Learn how to dockerize your Nuxt 3+ application to ensure consistency, isolation, scalability, and portability across different environments. This guide walks you through the steps to create a Docker container for your Nuxt 3+ app, making deployment seamless and efficient.","md",null,{},"\u002Fblog\u002Fdockerizing-a-nuxt-app",{"text":789,"minutes":790,"time":791,"words":792},"4 min read",3.24,194400,648,{"title":54,"description":783},{"loc":787,"lastmod":782},"blog\u002Fdockerizing-a-nuxt-app\u002Findex","7uukWJh9rE9WePkP9VEomHLRTqiqLPOLLnABRLCmMVM",[798,803,808,813],{"cover":799,"date":800,"slug":801,"title":802,"to":801},"blog\u002Fa-comprehensive-guide-to-data-fetching-in-nuxt-3\u002Fog.png","2023-06-20","\u002Fblog\u002Fa-comprehensive-guide-to-data-fetching-in-nuxt-3","A Comprehensive Guide to Data Fetching in Nuxt 3",{"cover":804,"date":805,"slug":806,"title":807,"to":806},"blog\u002Fanalyze-memory-leaks-in-your-nuxt-app\u002Fog.png","2024-07-27","\u002Fblog\u002Fanalyze-memory-leaks-in-your-nuxt-app","Analyze Memory Leaks in Your Nuxt App",{"cover":809,"date":810,"slug":811,"title":812,"to":811},"blog\u002Fbuilding-a-polite-newsletter-popup-with-nuxt-3\u002FBlog_Post__Polite_Popup_Nuxt_3_k8ch1w.jpg","2022-10-18","\u002Fblog\u002Fbuilding-a-polite-newsletter-popup-with-nuxt-3","Building a Polite Newsletter Popup With Nuxt 3",{"cover":814,"date":815,"slug":816,"title":817,"to":816},"blog\u002Fconnecting-mysql-database-nuxt-drizzle-orm\u002Fog.jpg","2025-08-22","\u002Fblog\u002Fconnecting-mysql-database-nuxt-drizzle-orm","Connecting a MySQL Database in Nuxt with Drizzle ORM",[819,821],{"title":807,"path":806,"stem":820,"children":-1},"blog\u002Fanalyze-memory-leaks-in-your-nuxt-app\u002Findex",{"title":822,"path":823,"stem":824,"children":-1},"Self-Host Your Nuxt App With Coolify","\u002Fblog\u002Fself-host-your-nuxt-app-with-coolify","blog\u002Fself-host-your-nuxt-app-with-coolify\u002Findex",{"id":826,"title":54,"body":827,"cover":781,"date":782,"description":783,"extension":784,"meta":1313,"navigation":11,"path":787,"robots":785,"seo":1316,"sitemap":1317,"stem":795,"__hash__":1318},"content\u002Fblog\u002Fdockerizing-a-nuxt-app\u002Findex.md",{"type":56,"value":828,"toc":1304},[829,834,836,838,840,858,860,862,881,883,885,913,917,919,923,927,1159,1161,1165,1181,1187,1189,1205,1211,1213,1215,1219,1271,1275,1285,1287,1289,1291,1296,1301],[59,830,831,68],{},[62,832,67],{"href":64,"rel":833},[66],[59,835,71],{},[73,837,76],{"id":75},[59,839,79],{},[81,841,842,846,850,854],{},[84,843,844,90],{},[87,845,89],{},[84,847,848,96],{},[87,849,95],{},[84,851,852,102],{},[87,853,101],{},[84,855,856,108],{},[87,857,107],{},[73,859,112],{"id":111},[59,861,115],{},[117,863,864,875,877,879],{},[84,865,121,866,127,869,132,871,136,873,140],{},[62,867,126],{"href":124,"rel":868},[66],[129,870,131],{},[129,872,135],{},[129,874,139],{},[84,876,143],{},[84,878,146],{},[84,880,149],{},[73,882,153],{"id":152},[59,884,156],{},[158,886,887],{"className":160,"code":161,"language":162,"meta":163,"style":163},[129,888,889,901,907],{"__ignoreMap":163},[167,890,891,893,895,897,899],{"class":169,"line":170},[167,892,126],{"class":173},[167,894,177],{"class":176},[167,896,180],{"class":176},[167,898,183],{"class":176},[167,900,186],{"class":176},[167,902,903,905],{"class":169,"line":189},[167,904,193],{"class":192},[167,906,186],{"class":176},[167,908,909,911],{"class":169,"line":198},[167,910,126],{"class":173},[167,912,203],{"class":176},[59,914,206,915,210],{},[129,916,209],{},[73,918,214],{"id":213},[59,920,217,921,221],{},[129,922,220],{},[59,924,224,925,227],{},[129,926,220],{},[158,928,929],{"className":230,"code":231,"filename":220,"language":232,"meta":163,"style":163},[129,930,931,937,941,945,955,959,963,971,979,985,989,993,999,1003,1007,1013,1019,1023,1027,1033,1037,1041,1047,1051,1055,1061,1065,1069,1075,1079,1083,1089,1093,1097,1103,1107,1111,1117,1123,1127,1131,1137,1141,1145],{"__ignoreMap":163},[167,932,933,935],{"class":169,"line":170},[167,934,240],{"class":239},[167,936,244],{"class":243},[167,938,939],{"class":169,"line":189},[167,940,249],{"emptyLinePlaceholder":11},[167,942,943],{"class":169,"line":198},[167,944,255],{"class":254},[167,946,947,949,951,953],{"class":169,"line":258},[167,948,261],{"class":239},[167,950,264],{"class":243},[167,952,267],{"class":239},[167,954,270],{"class":243},[167,956,957],{"class":169,"line":273},[167,958,249],{"emptyLinePlaceholder":11},[167,960,961],{"class":169,"line":278},[167,962,281],{"class":254},[167,964,965,967,969],{"class":169,"line":284},[167,966,287],{"class":239},[167,968,290],{"class":243},[167,970,294],{"class":293},[167,972,973,975,977],{"class":169,"line":297},[167,974,287],{"class":239},[167,976,302],{"class":243},[167,978,305],{"class":293},[167,980,981,983],{"class":169,"line":308},[167,982,311],{"class":239},[167,984,314],{"class":243},[167,986,987],{"class":169,"line":317},[167,988,249],{"emptyLinePlaceholder":11},[167,990,991],{"class":169,"line":322},[167,992,325],{"class":254},[167,994,995,997],{"class":169,"line":328},[167,996,331],{"class":239},[167,998,334],{"class":243},[167,1000,1001],{"class":169,"line":337},[167,1002,249],{"emptyLinePlaceholder":11},[167,1004,1005],{"class":169,"line":342},[167,1006,345],{"class":254},[167,1008,1009,1011],{"class":169,"line":348},[167,1010,351],{"class":239},[167,1012,354],{"class":243},[167,1014,1015,1017],{"class":169,"line":357},[167,1016,351],{"class":239},[167,1018,362],{"class":243},[167,1020,1021],{"class":169,"line":365},[167,1022,249],{"emptyLinePlaceholder":11},[167,1024,1025],{"class":169,"line":370},[167,1026,373],{"class":254},[167,1028,1029,1031],{"class":169,"line":376},[167,1030,311],{"class":239},[167,1032,381],{"class":243},[167,1034,1035],{"class":169,"line":384},[167,1036,249],{"emptyLinePlaceholder":11},[167,1038,1039],{"class":169,"line":389},[167,1040,392],{"class":254},[167,1042,1043,1045],{"class":169,"line":395},[167,1044,351],{"class":239},[167,1046,400],{"class":243},[167,1048,1049],{"class":169,"line":403},[167,1050,249],{"emptyLinePlaceholder":11},[167,1052,1053],{"class":169,"line":408},[167,1054,411],{"class":254},[167,1056,1057,1059],{"class":169,"line":414},[167,1058,311],{"class":239},[167,1060,419],{"class":243},[167,1062,1063],{"class":169,"line":422},[167,1064,249],{"emptyLinePlaceholder":11},[167,1066,1067],{"class":169,"line":427},[167,1068,430],{"class":254},[167,1070,1071,1073],{"class":169,"line":433},[167,1072,261],{"class":239},[167,1074,438],{"class":243},[167,1076,1077],{"class":169,"line":441},[167,1078,249],{"emptyLinePlaceholder":11},[167,1080,1081],{"class":169,"line":446},[167,1082,325],{"class":254},[167,1084,1085,1087],{"class":169,"line":451},[167,1086,331],{"class":239},[167,1088,334],{"class":243},[167,1090,1091],{"class":169,"line":458},[167,1092,249],{"emptyLinePlaceholder":11},[167,1094,1095],{"class":169,"line":463},[167,1096,466],{"class":254},[167,1098,1099,1101],{"class":169,"line":469},[167,1100,351],{"class":239},[167,1102,474],{"class":243},[167,1104,1105],{"class":169,"line":477},[167,1106,249],{"emptyLinePlaceholder":11},[167,1108,1109],{"class":169,"line":482},[167,1110,485],{"class":254},[167,1112,1113,1115],{"class":169,"line":488},[167,1114,287],{"class":239},[167,1116,493],{"class":243},[167,1118,1119,1121],{"class":169,"line":496},[167,1120,287],{"class":239},[167,1122,501],{"class":243},[167,1124,1125],{"class":169,"line":504},[167,1126,249],{"emptyLinePlaceholder":11},[167,1128,1129],{"class":169,"line":509},[167,1130,512],{"class":254},[167,1132,1133,1135],{"class":169,"line":515},[167,1134,518],{"class":239},[167,1136,521],{"class":243},[167,1138,1139],{"class":169,"line":524},[167,1140,249],{"emptyLinePlaceholder":11},[167,1142,1143],{"class":169,"line":529},[167,1144,532],{"class":254},[167,1146,1147,1149,1151,1153,1155,1157],{"class":169,"line":535},[167,1148,538],{"class":239},[167,1150,541],{"class":243},[167,1152,544],{"class":293},[167,1154,547],{"class":243},[167,1156,550],{"class":293},[167,1158,553],{"class":243},[73,1160,557],{"id":556},[59,1162,560,1163,563],{},[129,1164,220],{},[158,1166,1167],{"className":160,"code":566,"language":162,"meta":163,"style":163},[129,1168,1169],{"__ignoreMap":163},[167,1170,1171,1173,1175,1177,1179],{"class":169,"line":170},[167,1172,573],{"class":173},[167,1174,576],{"class":176},[167,1176,580],{"class":579},[167,1178,583],{"class":176},[167,1180,586],{"class":176},[59,1182,589,1183,592,1185,596],{},[129,1184,209],{},[129,1186,595],{},[59,1188,599],{},[158,1190,1191],{"className":160,"code":602,"language":162,"meta":163,"style":163},[129,1192,1193],{"__ignoreMap":163},[167,1194,1195,1197,1199,1201,1203],{"class":169,"line":170},[167,1196,573],{"class":173},[167,1198,611],{"class":176},[167,1200,614],{"class":579},[167,1202,617],{"class":176},[167,1204,186],{"class":176},[59,1206,622,1207,625,1209,629],{},[129,1208,209],{},[129,1210,628],{},[73,1212,633],{"id":632},[59,1214,636],{},[59,1216,639,1217,643],{},[129,1218,642],{},[158,1220,1221],{"className":646,"code":647,"language":648,"meta":163,"style":163},[129,1222,1223,1235,1241,1247,1255,1261],{"__ignoreMap":163},[167,1224,1225,1227,1229,1231,1233],{"class":169,"line":170},[167,1226,656],{"class":655},[167,1228,659],{"class":243},[167,1230,663],{"class":662},[167,1232,666],{"class":293},[167,1234,669],{"class":662},[167,1236,1237,1239],{"class":169,"line":189},[167,1238,674],{"class":655},[167,1240,677],{"class":243},[167,1242,1243,1245],{"class":169,"line":198},[167,1244,682],{"class":655},[167,1246,677],{"class":243},[167,1248,1249,1251,1253],{"class":169,"line":258},[167,1250,689],{"class":655},[167,1252,659],{"class":243},[167,1254,695],{"class":694},[167,1256,1257,1259],{"class":169,"line":273},[167,1258,700],{"class":655},[167,1260,677],{"class":243},[167,1262,1263,1265,1267,1269],{"class":169,"line":278},[167,1264,707],{"class":243},[167,1266,710],{"class":662},[167,1268,713],{"class":293},[167,1270,716],{"class":662},[59,1272,719,1273,722],{},[129,1274,642],{},[158,1276,1277],{"className":160,"code":725,"language":162,"meta":163,"style":163},[129,1278,1279],{"__ignoreMap":163},[167,1280,1281,1283],{"class":169,"line":170},[167,1282,732],{"class":173},[167,1284,735],{"class":176},[73,1286,739],{"id":738},[59,1288,742],{},[59,1290,745],{},[59,1292,748,1293,754],{},[62,1294,753],{"href":751,"rel":1295},[66],[59,1297,757,1298,763],{},[62,1299,762],{"href":760,"rel":1300},[66],[765,1302,1303],{},"html pre.shiki code .sgaD9, html code.shiki .sgaD9{--shiki-light:#6F42C1;--shiki-default:#91B4D5;--shiki-dark:#91B4D5}html pre.shiki code .sMmyg, html code.shiki .sMmyg{--shiki-light:#032F62;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}html pre.shiki code .sDR3q, html code.shiki .sDR3q{--shiki-light:#005CC5;--shiki-default:#91B4D5;--shiki-dark:#91B4D5}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sRZEA, html code.shiki .sRZEA{--shiki-light:#D73A49;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .sygvE, html code.shiki .sygvE{--shiki-light:#24292E;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .s1MN7, html code.shiki .s1MN7{--shiki-light:#6A737D;--shiki-light-font-style:inherit;--shiki-default:#767C9DB0;--shiki-default-font-style:italic;--shiki-dark:#767C9DB0;--shiki-dark-font-style:italic}html pre.shiki code .skTdI, html code.shiki .skTdI{--shiki-light:#032F62;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .snkik, html code.shiki .snkik{--shiki-light:#005CC5;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}html pre.shiki code .s8PnL, html code.shiki .s8PnL{--shiki-light:#22863A;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .srEIG, html code.shiki .srEIG{--shiki-light:#032F62;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .s6g4C, html code.shiki .s6g4C{--shiki-light:#005CC5;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}",{"title":163,"searchDepth":189,"depth":189,"links":1305},[1306,1307,1308,1309,1310,1311,1312],{"id":75,"depth":189,"text":76},{"id":111,"depth":189,"text":112},{"id":152,"depth":189,"text":153},{"id":213,"depth":189,"text":214},{"id":556,"depth":189,"text":557},{"id":632,"depth":189,"text":633},{"id":738,"depth":189,"text":739},{"categories":1314,"readingTime":1315},[778,779,780],{"text":789,"minutes":790,"time":791,"words":792},{"title":54,"description":783},{"loc":787,"lastmod":782},"VJN7ckxBgbeTIBjq91a0XW_WONgWK-SFxQvbkVx4w0Q","f09a107e-6bfe-401d-aab9-d94cb6f394d2"]