name: drivervault-aio # Production all-in-one — pulls the prebuilt image from the registry instead of # building. One container runs PocketBase + API Server + Web App (nginx). # Everything an operator needs to set lives in .env. # # 1. cp .env.prod.example .env (then edit it) # 2. docker compose -f docker-compose.prod.yml pull # 3. docker compose -f docker-compose.prod.yml up -d # # On first boot PocketBase upserts the superuser from PB_ADMIN_*, and the API # Server creates any missing collections and the DriverVault super-admin from # DRIVERVAULT_SUPERADMIN_*. Both steps are idempotent. services: drivervault: image: "${AIO_IMAGE:-10.2.1.10:5500/admin/drivervault-aio:latest}" container_name: drivervault-aio restart: unless-stopped environment: # Superuser (also used by the API Server to authenticate to PocketBase). PB_ADMIN_EMAIL: "${PB_ADMIN_EMAIL:?set PB_ADMIN_EMAIL in .env}" PB_ADMIN_PASSWORD: "${PB_ADMIN_PASSWORD:?set PB_ADMIN_PASSWORD in .env}" # Match CORS to the web origin (only used if a browser calls the API directly). CORS_ALLOW_ORIGINS: "${CORS_ALLOW_ORIGINS:-http://localhost:8090}" # Schema + super-admin bootstrap on boot (idempotent). Set PB_BOOTSTRAP=false # to skip once the database is established. PB_BOOTSTRAP: "${PB_BOOTSTRAP:-true}" DRIVERVAULT_SUPERADMIN_EMAIL: "${DRIVERVAULT_SUPERADMIN_EMAIL:-}" DRIVERVAULT_SUPERADMIN_PASSWORD: "${DRIVERVAULT_SUPERADMIN_PASSWORD:-}" DRIVERVAULT_SUPERADMIN_NAME: "${DRIVERVAULT_SUPERADMIN_NAME:-Administrator}" ports: - "${WEB_PORT:-8090}:80" # Web App - "${PB_PORT:-8070}:8070" # PocketBase admin UI / API - "${API_PORT:-8080}:8080" # API Server + embedded API web panel (root /) volumes: # Named volume by default; set PB_DATA to a host path in .env for a bind mount. - "${PB_DATA:-pb_data}:/pb/pb_data" volumes: pb_data: