Sign inSign up

adarcher/engine-proxy

By adarcher

•Updated 6 months ago

Image
0

2.7K

adarcher/engine-proxy repository overview

⁠Engine Proxy Docker Image

A lightweight Next.js service that proxies searches through customizable shortcuts. This document is optimized for Docker Hub and describes how to run the prebuilt image.

⁠Quick start

docker run -d \
  --name engine-proxy \
  -p 3000:3000 \
  -v engine-proxy-data:/app/prisma \
  -e DATABASE_URL="file:./prisma/data.db" \
  -e ADMIN_USERNAME="admin" \
  -e ADMIN_PASSWORD="change-me" \
  adarcher/engine-proxy:latest
  • The engine-proxy-data named volume keeps the SQLite database (/app/prisma/data.db) between restarts.
  • Set ADMIN_USERNAME and ADMIN_PASSWORD to control Basic Auth for /admin and the management API.
  • Add -e SKIP_DB_SETUP=true if you manage migrations externally and want to skip the automatic pnpm db:push + pnpm db:seed on startup.

⁠Environment variables

NameRequiredDefaultDescription
DATABASE_URLoptionalfile:./prisma/data.dbSQLite connection string; keep the file: prefix when storing locally.
ADMIN_USERNAMEyes–Username for the Basic Auth-protected admin console and API.
ADMIN_PASSWORDyes–Password paired with ADMIN_USERNAME.
SKIP_DB_SETUPnofalseSet to true to skip the Prisma push/seed step in docker-entrypoint.sh.

⁠Docker Compose

Copy the snippet below into docker-compose.yml, adjust the inline values, and run docker compose up --build:

services:
  engine-proxy:
    image: adarcher/engine-proxy:latest
    ports:
      - "3000:3000"
    environment:
      DATABASE_URL: "file:./prisma/data.db"
      ADMIN_USERNAME: "admin"
      ADMIN_PASSWORD: "change-me"
    volumes:
      - engine-proxy-data:/app/prisma
      # - ./database:/app/prisma # uncomment to bind to a host folder
    restart: unless-stopped

volumes:
  engine-proxy-data:

Tag summary

Content type

Image

Digest

sha256:4d2e22cac…

Size

724.1 MB

Last updated

6 months ago

docker pull adarcher/engine-proxy