HUB
Sign inSign up

aikpe/matthieu25v6-api

By aikpe

•Updated 19 days ago

REST API for the **Matthieu 25:6** religious platform, serving sermon content, verses, biographies.

Image
API management
Databases & storage
0

10K+

aikpe/matthieu25v6-api repository overview

⁠Matthieu 25:6 — API

REST API for the Matthieu 25:6 religious platform, serving sermon content, verses, biographies and multi-language SQLite databases to mobile and web applications.


⁠Quick Start

services:
  api:
    image: aikpe/matthieu25v6-api:latest
    restart: unless-stopped
    depends_on:
      redis:
        condition: service_healthy
    volumes:
      - /opt/matthieu25v6/database:/var/www/html/database
      - /opt/matthieu25v6/storage:/var/www/html/storage
    environment:
      - APP_KEY=base64:...
      - APP_URL=https://your-domain.com
      - DB_CONNECTION=auth
      - REDIS_HOST=redis
      - REDIS_PASSWORD=your_redis_password
      - QUEUE_CONNECTION=redis
      - CACHE_STORE=redis
      - SESSION_DRIVER=redis
      - AWS_ACCESS_KEY_ID=your_r2_key
      - AWS_SECRET_ACCESS_KEY=your_r2_secret
      - AWS_BUCKET=your_bucket
      - AWS_ENDPOINT=https://your-account.r2.cloudflarestorage.com
      - R2_PUBLIC_URL=https://your-custom-domain.com
      - CLOUDFLARE_API_TOKEN=your_cf_token
      - CLOUDFLARE_ZONE_ID=your_zone_id
      - MAIL_HOST=your_smtp_host
      - MAIL_PORT=465
      - MAIL_USERNAME=your_email
      - MAIL_PASSWORD=your_password
      - MAIL_ENCRYPTION=SSL

    networks:
      - internal

  redis:
    image: redis/redis-stack-server:latest
    restart: unless-stopped
    environment:
      - REDIS_ARGS=--requirepass ${REDIS_PASSWORD} --appendonly yes --databases 16 --maxmemory 256mb --maxmemory-policy allkeys-lru
    volumes:
      - /opt/matthieu25v6/redis-data:/data
    networks:
      - internal
    healthcheck:
      test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "--no-auth-warning", "ping"]
      interval: 10s
      timeout: 5s
      retries: 5

networks:
  internal:
    external: true
    name: matthieu25v6-internal

⁠Required Volumes

Host pathContainer pathDescription
/opt/matthieu25v6/database/var/www/html/databaseSQLite databases (auth.db, common.db, versions/)
/opt/matthieu25v6/storage/var/www/html/storageLaravel storage (logs, cache, sessions)

Note: The SQLite databases are NOT included in the image. They must exist on the host before starting the container. To initialize, restore from backup or synchronize from the production-db-updated branch.


⁠Environment Variables

⁠Required
VariableDescription
APP_KEYLaravel application key (base64:...)
APP_URLPublic URL of the API
REDIS_HOSTRedis hostname
REDIS_PASSWORDRedis password
AWS_ACCESS_KEY_IDCloudflare R2 key ID
AWS_SECRET_ACCESS_KEYCloudflare R2 secret
AWS_BUCKETR2 bucket name
AWS_ENDPOINTR2 endpoint URL
R2_PUBLIC_URLPublic CDN URL for database downloads
⁠Optional
VariableDefaultDescription
APP_ENVproductionApplication environment
APP_DEBUGfalseEnable debug mode
DB_CONNECTIONauthDefault DB connection
QUEUE_CONNECTIONredisQueue driver
CACHE_STOREredisCache driver
SESSION_DRIVERredisSession driver
MAIL_HOST-SMTP server
CLOUDFLARE_API_TOKEN-For cache purging
CLOUDFLARE_ZONE_ID-Cloudflare zone

⁠Health Check

GET /api/health

Response (healthy):

{
  "status": "ok",
  "db": "connected",
  "lng": "en-en",
  "total_sermons": 150
}

Response (error):

{
  "status": "error",
  "message": "Error description"
}

⁠API Documentation

Available at /docs/api when the container is running.


⁠Tags

TagDescription
latestLatest stable release
v1.XSpecific versioned release (last 10 kept)
Tag summary
Recent tags
Content type
Image
Digest
sha256:6270c8805…
Size
237.8 MB
Last updated
19 days ago
docker pull aikpe/matthieu25v6-api:latest