Skip to content

Commit 1895b06

Browse files
committed
chore: remove all Docker-related files and references
- Delete Dockerfile, docker-compose.yml, .dockerignore - Delete docker/ directory and README - Delete docs/install.sh (Docker-only install script) - Delete .github/workflows/docker.yml (GHCR publish CI) - Strip Docker mentions from .env.example, README.md, docs/index.html, client/vite.config.ts, server/src/index.ts
1 parent 97dc9ca commit 1895b06

11 files changed

Lines changed: 16 additions & 517 deletions

File tree

.dockerignore

Lines changed: 0 additions & 20 deletions
This file was deleted.

.env.example

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ ENCRYPTION_KEY=your-64-char-hex-key-here
44
# Server port (default: 3001)
55
PORT=3001
66

7-
# Docker only: which host interface the container's port is published on.
8-
# Defaults to 127.0.0.1, so the dashboard/API is reachable only from the
9-
# machine running Docker. To open it to other devices on your LAN (e.g. a
10-
# Raspberry Pi reached at http://192.168.1.x:3001), set HOST_BIND=0.0.0.0.
11-
# Only do this on a trusted network — the proxy is single-user and guarded
12-
# only by the unified API key.
137
# HOST_BIND=0.0.0.0
148

159
# Max /v1 proxy requests per minute per client IP (default: 120). Set to 0

.github/workflows/docker.yml

Lines changed: 0 additions & 127 deletions
This file was deleted.

Dockerfile

Lines changed: 0 additions & 54 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Aggregate free tiers from Google, Groq, Cerebras, NVIDIA, Mistral, OpenRouter, G
2525
- [Features](#features)
2626
- [Not yet supported](#not-yet-supported)
2727
- [Quick start](#quick-start)
28-
- [Docker](#docker)
2928
- [Using the API](#using-the-api)
3029
- [Custom platforms and models](#custom-platforms-and-models)
3130
- [Screenshots](#screenshots)
@@ -147,7 +146,7 @@ PRs that add any of these are very welcome. See [Contributing](#contributing).
147146

148147
## Quick start
149148

150-
**Prerequisites:** Node.js 20+, npm. (Docker also works — see [Docker](#docker).)
149+
**Prerequisites:** Node.js 20+, npm.
151150

152151
```bash
153152
git clone https://github.com/MLuqmanBR/api-gateway.git
@@ -166,7 +165,7 @@ Open http://localhost:5173 (the Vite dev UI), add your provider keys on the **Ke
166165

167166
> **Reaching the dev UI from another device on your LAN?** Use `npm run dev:lan` — it passes `--host` through to Vite, which then prints a `Network: http://<your-ip>:5173` URL you can open from a phone or another machine. (Plain `npm run dev -- --host` does *not* work here: the root `dev` script is a `concurrently` wrapper, so the flag never reaches Vite.) API calls go through Vite's dev proxy, so no extra server config is needed.
168167
169-
For a production build without Docker:
168+
For a production build:
170169

171170
```bash
172171
npm run build
@@ -177,30 +176,6 @@ node server/dist/index.js # server + dashboard both served on :3001
177176

178177
Request analytics are retained for 90 days or 100000 request rows by default, whichever limit prunes first. Set `REQUEST_ANALYTICS_RETENTION_DAYS=0` or `REQUEST_ANALYTICS_MAX_ROWS=0` in `.env` to disable either retention limit.
179178

180-
## Docker
181-
182-
```bash
183-
git clone https://github.com/MLuqmanBR/api-gateway.git
184-
cd api-gateway
185-
186-
# Generate an encryption key
187-
ENCRYPTION_KEY="$(openssl rand -hex 32)"
188-
printf "ENCRYPTION_KEY=%s\nPORT=3001\n" "$ENCRYPTION_KEY" > .env
189-
190-
docker compose up -d --build
191-
```
192-
193-
Open http://localhost:3001. SQLite data is stored in the `api-gateway-data` volume at `/app/server/data`. Keep the same `.env` `ENCRYPTION_KEY` and volume when upgrading.
194-
195-
> **Reaching it from another machine?** By default the container is published only on `127.0.0.1`. To expose it on your LAN — e.g. a Raspberry Pi at `http://192.168.1.x:3001` — start it with `HOST_BIND=0.0.0.0`:
196-
>
197-
> ```bash
198-
> HOST_BIND=0.0.0.0 docker compose up -d --build
199-
> ```
200-
>
201-
> Only do this on a trusted network: the proxy is single-user and guarded only by the unified API key.
202-
203-
More Docker operations and examples live in [docker/README.md](./docker/README.md).
204179

205180
## Using the API
206181

@@ -475,7 +450,7 @@ Contributors very welcome! Good first PRs:
475450
- **Add an endpoint** — images, moderations, audio. The provider base class can grow new methods; adapters declare which they support.
476451
- **Improve the router** — cost-aware routing (cheapest-healthy-fastest tradeoffs), better latency-weighted priority, regional pinning.
477452
- **Dashboard polish** — charts on the Analytics page, key rotation UX, batch import of keys from `.env`.
478-
- **Docs** — more examples, client library snippets for Go/Rust/etc., a deployment recipe for Docker or Fly.
453+
- **Docs** — more examples, client library snippets for Go/Rust/etc.
479454

480455
**Development loop:**
481456

client/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default defineConfig(({ mode }) => {
2222
server: {
2323
proxy: {
2424
// Force IPv4 — on Windows + Node 17+, `localhost` resolves to ::1 first,
25-
// which can collide with wslrelay / Docker Desktop listeners on the same port.
25+
// which can collide with other listeners on the same port.
2626
'/api': `http://127.0.0.1:${serverPort}`,
2727
'/v1': `http://127.0.0.1:${serverPort}`,
2828
},

docker-compose.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)