"use strict";(globalThis.webpackChunktripdocs=globalThis.webpackChunktripdocs||[]).push([[185],{2403:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>d,default:()=>l,frontMatter:()=>s,metadata:()=>o,toc:()=>a});const o=JSON.parse('{"id":"getting-started/deploy","title":"Deployment","description":"Deploy TRIP","source":"@site/docs/getting-started/deploy.md","sourceDirName":"getting-started","slug":"/getting-started/deploy","permalink":"/trip/docs/getting-started/deploy","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":0,"frontMatter":{"sidebar_position":0,"description":"Deploy TRIP"},"sidebar":"docSidebar","previous":{"title":"Getting Started","permalink":"/trip/docs/category/getting-started"},"next":{"title":"Configuration","permalink":"/trip/docs/getting-started/configuration"}}');var r=n(4848),i=n(8453);const s={sidebar_position:0,description:"Deploy TRIP"},d="Deployment",c={},a=[{value:"\ud83c\udf31 Getting Started <a></a>",id:"-getting-started-",level:2},{value:"Option 1: Docker Compose (Recommended)",id:"option-1-docker-compose-recommended",level:3},{value:"Option 2: Docker Run",id:"option-2-docker-run",level:3}];function p(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.header,{children:(0,r.jsx)(t.h1,{id:"deployment",children:"Deployment"})}),"\n",(0,r.jsxs)(t.h2,{id:"-getting-started-",children:["\ud83c\udf31 Getting Started ",(0,r.jsx)("a",{name:"getting_started"})]}),"\n",(0,r.jsxs)(t.p,{children:["Deployment is designed to be simple using Docker.\nIf you need help, feel free to open a ",(0,r.jsx)(t.a,{href:"https://github.com/itskovacs/trip/discussions",children:"discussion"}),"."]}),"\n",(0,r.jsx)(t.h3,{id:"option-1-docker-compose-recommended",children:"Option 1: Docker Compose (Recommended)"}),"\n",(0,r.jsxs)(t.p,{children:["Use the ",(0,r.jsx)(t.code,{children:"docker-compose.yml"})," file provided in the repository.\nNo changes are required, though you may customize it to suit your needs."]}),"\n",(0,r.jsx)(t.p,{children:"Run the container:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",children:"docker-compose up -d\n"})}),"\n",(0,r.jsx)(t.h3,{id:"option-2-docker-run",children:"Option 2: Docker Run"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",children:"# Ensure you have the latest image\ndocker pull ghcr.io/itskovacs/trip:1\n\n# Run the container\ndocker run -d -p 8080:8000 -v ./storage:/app/storage ghcr.io/itskovacs/trip:1\n"})})]})}function l(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>s,x:()=>d});var o=n(6540);const r={},i=o.createContext(r);function s(e){const t=o.useContext(i);return o.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(e.components),o.createElement(i.Provider,{value:t},e.children)}}}]);