diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..699e7c92 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,8 @@ +**/node_modules +**/.next +.git +.gitconfig +.gitignore +.github +**/README.md +**/.vscode diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..a3960032 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM node:12.18-alpine + +COPY . /app +WORKDIR /app + +RUN yarn && \ + yarn build + +CMD yarn start diff --git a/Dockerfile.local b/Dockerfile.local new file mode 100644 index 00000000..47470513 --- /dev/null +++ b/Dockerfile.local @@ -0,0 +1,8 @@ +FROM node:12.18-alpine + +COPY . /app +WORKDIR /app + +RUN yarn + +CMD yarn dev diff --git a/README.md b/README.md index 4b5c883b..15c5f3bd 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,13 @@ -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). +# Overseerr -## Getting Started +A thing for requesting things -First, run the development server: +## Development -```bash -npm run dev -# or -yarn dev -``` +You can develop Overseer entirely in docker. Make sure you have [Docker Desktop](https://www.docker.com/products/docker-desktop) installed before continuing. -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. +1. Make sure you have [Docker Desktop](https://www.docker.com/products/docker-desktop) installed. +2. Run `docker-compose up -d` to start the server +3. Access the container at http://localhost:3000 -You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/import?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. +That's it! diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..111e5545 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +version: '3' +services: + overseerr: + build: + context: . + dockerfile: Dockerfile.local + ports: + - 3000:3000 + volumes: + - .:/app:rw,cached + - /app/node_modules + - /app/.next