REST API for the **Matthieu 25:6** religious platform, serving sermon content, verses, biographies.
10K+
REST API for the Matthieu 25:6 religious platform, serving sermon content, verses, biographies and multi-language SQLite databases to mobile and web applications.
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
| Host path | Container path | Description |
|---|---|---|
/opt/matthieu25v6/database | /var/www/html/database | SQLite databases (auth.db, common.db, versions/) |
/opt/matthieu25v6/storage | /var/www/html/storage | Laravel 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-updatedbranch.
| Variable | Description |
|---|---|
APP_KEY | Laravel application key (base64:...) |
APP_URL | Public URL of the API |
REDIS_HOST | Redis hostname |
REDIS_PASSWORD | Redis password |
AWS_ACCESS_KEY_ID | Cloudflare R2 key ID |
AWS_SECRET_ACCESS_KEY | Cloudflare R2 secret |
AWS_BUCKET | R2 bucket name |
AWS_ENDPOINT | R2 endpoint URL |
R2_PUBLIC_URL | Public CDN URL for database downloads |
| Variable | Default | Description |
|---|---|---|
APP_ENV | production | Application environment |
APP_DEBUG | false | Enable debug mode |
DB_CONNECTION | auth | Default DB connection |
QUEUE_CONNECTION | redis | Queue driver |
CACHE_STORE | redis | Cache driver |
SESSION_DRIVER | redis | Session driver |
MAIL_HOST | - | SMTP server |
CLOUDFLARE_API_TOKEN | - | For cache purging |
CLOUDFLARE_ZONE_ID | - | Cloudflare zone |
GET /api/health
Response (healthy):
{
"status": "ok",
"db": "connected",
"lng": "en-en",
"total_sermons": 150
}
Response (error):
{
"status": "error",
"message": "Error description"
}
Available at /docs/api when the container is running.
| Tag | Description |
|---|---|
latest | Latest stable release |
v1.X | Specific versioned release (last 10 kept) |
docker pull aikpe/matthieu25v6-api:latest