Skip to content

Latest commit

 

History

History
119 lines (85 loc) · 2.05 KB

DOCKER.md

File metadata and controls

119 lines (85 loc) · 2.05 KB

Docker Deployment Guide

This guide explains how to run Zip2LLMContext using Docker.

Prerequisites

  • Docker installed on your system
  • Docker Compose (included with Docker Desktop)

Quick Start

Option 1: Using Docker Compose (Recommended)

# Build and start the container
docker compose up -d

# View logs
docker compose logs -f

# Stop the container
docker compose down

The app will be available at http://localhost:5700

Option 2: Using Docker CLI

# Build the image
docker build -t zip2llmcontext .

# Run the container
docker run -d -p 5700:5700 --name zip2context zip2llmcontext

# View logs
docker logs -f zip2context

# Stop the container
docker stop zip2context
docker rm zip2context

What Gets Installed

The Docker image automatically:

  • Installs all Node.js dependencies
  • Builds the Next.js application
  • Creates an optimized production image

No manual npm install required - just build and run!

Configuration

Port Configuration

By default, the app runs on port 5700. To change this:

  1. Edit compose.yaml:

    ports:
      - "YOUR_PORT:5700"
  2. Or use Docker CLI:

    docker run -d -p YOUR_PORT:5700 zip2llmcontext

Environment Variables

You can add environment variables in compose.yaml:

environment:
  - NODE_ENV=production
  - PORT=5700
  - YOUR_CUSTOM_VAR=value

Production Deployment

For production deployments:

  1. Use a reverse proxy (nginx, Caddy, Traefik) for HTTPS
  2. Set up proper logging and monitoring
  3. Configure resource limits in compose.yaml:
    deploy:
      resources:
        limits:
          cpus: '1'
          memory: 1G

Troubleshooting

Build fails

# Clean build with no cache
docker build --no-cache -t zip2llmcontext .

Container won't start

# Check logs
docker compose logs

# Check container status
docker compose ps

Port already in use

Change the host port in compose.yaml or use:

docker run -d -p 5701:5700 zip2llmcontext

Made with ❤️ by Joshua Viars