mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-16 11:25:25 +02:00
Kener v4 requires Redis for its BullMQ queues, caching and scheduler, so the app crashed on startup with "REDIS_URL is not defined in environment variables" right after printing that it was running (issue #976). The template also spun up both a postgres and a mariadb container while DATABASE_URL pointed at SQLite, so neither database was ever used (issue #282). Changes, aligned with the upstream docker-compose.yml (rajnandan1/kener): - Add a redis:7-alpine service with a healthcheck and persistent volume, wire REDIS_URL=redis://redis:6379 and make kener depend on redis being healthy - Remove the unused postgres and mysql services plus their env vars and generated passwords; keep SQLite (upstream default) persisted in the kener_db volume - Set ORIGIN to https://<domain> instead of http://localhost:3000 so CSRF protection works behind the generated domain - Drop the stale /app/uploads bind mount (kener v4 only persists /app/database) and the obsolete compose version key Deploy-tested on a Dokploy instance: migrations and seed complete, schedulers start, "Kener version 4.1.2 is running!", HTTP 200 on the generated domain, both containers stable. Closes #976 Closes #282 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
36 lines
819 B
YAML
36 lines
819 B
YAML
services:
|
|
kener:
|
|
image: rajnandan1/kener:latest
|
|
environment:
|
|
- TZ=${TZ}
|
|
- KENER_SECRET_KEY=${KENER_SECRET_KEY} # 🔐 API key / secret
|
|
- ORIGIN=${ORIGIN}
|
|
- REDIS_URL=${REDIS_URL}
|
|
- DATABASE_URL=${DATABASE_URL}
|
|
- KENER_BASE_PATH=${KENER_BASE_PATH}
|
|
- RESEND_API_KEY=${RESEND_API_KEY} # 🔐 API key
|
|
- RESEND_SENDER_EMAIL=${RESEND_SENDER_EMAIL}
|
|
ports:
|
|
- 3000
|
|
volumes:
|
|
- kener_db:/app/database
|
|
depends_on:
|
|
redis:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
volumes:
|
|
- kener_redis:/data
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
kener_db: {}
|
|
kener_redis: {}
|