Files
DriverVault/API Server/docker-compose.yml
T
tajniak81andClaude Opus 4.8 1e76c2b7f9 Refresh docs and fix Docker builds for current layout
READMEs: correct the auth model (PocketBase token relay, not JWT/sessions),
document the full feature set (technical checks, fuel, maintenance, documents,
reminders, attachments, integrations, OCPP charging control), the shipping
built-in connectors (toyota, anker-solix), and the current endpoint surface.

Docker: build against the current repo layout — Go 1.26, cmd/server entry
point, Web App source under web/. Add the missing Web App Dockerfile (Go BFF)
and .dockerignore, drop the obsolete AUTH_SECRET, modernise CORS var naming,
and standardise on drivervault-* naming.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-19 11:05:46 +02:00

23 lines
905 B
YAML

services:
api-server:
build:
context: .
dockerfile: Dockerfile
image: drivervault-api
container_name: drivervault-api
restart: unless-stopped
ports:
- "${PORT:-8080}:8080"
environment:
# Container always listens on 8080; map the host port above.
PORT: "8080"
# External PocketBase instance (all DB access goes through this server).
PB_URL: "${PB_URL:-http://10.2.1.10:8027}"
# Superuser service account. Leave unset and the server still starts — a
# superadmin can configure it from the panel; management endpoints 503 until then.
PB_ADMIN_EMAIL: "${PB_ADMIN_EMAIL}"
PB_ADMIN_PASSWORD: "${PB_ADMIN_PASSWORD}"
# Browser origins allowed by CORS (native apps are exempt).
CORS_ALLOW_ORIGINS: "${CORS_ALLOW_ORIGINS:-http://localhost:5173}"
AUTH_USERS_COLLECTION: "${AUTH_USERS_COLLECTION:-users}"