Files
vixtix/docker-compose.yml
Victor 4b8d75617b feat: add reminder system with cron scheduler and fix timezone formatting
- Add reminders to Prisma schema (Reminder model, TaskReminder relation)
- Add /api/reminders endpoint and cron send-reminders.ts script
- Add reminder fields to NewTaskModal and EditTaskModal components
- Fix reminder datetime serialization: use toISOString().slice(0,16) for
  UTC-safe YYYY-MM-DDTHH:mm format compatible with datetime-local inputs
- Update Dockerfile to install tsx for cron container
- Add AGENTS.md with project conventions
- Update docker-compose.yml with cron service and build context
2026-05-09 01:57:49 +00:00

56 lines
1.2 KiB
YAML

version: '3.8'
services:
postgres:
image: postgres:16-alpine
container_name: vixtix-db
restart: unless-stopped
environment:
POSTGRES_USER: vixtix
POSTGRES_PASSWORD: vixtix_secret
POSTGRES_DB: vixtix
ports:
- "5433:5432"
volumes:
- vixtix-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U vixtix"]
interval: 5s
timeout: 5s
retries: 5
vixtix:
image: vixtix:latest
container_name: vixtix
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
ports:
- "3000:3000"
environment:
DATABASE_URL: postgresql://vixtix:vixtix_secret@postgres:5432/vixtix
DB_HOST: postgres
DB_PORT: 5432
vixtix-cron:
image: vixtix:latest
container_name: vixtix-cron
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://vixtix:vixtix_secret@postgres:5432/vixtix
MATTERMOST_WEBHOOK_URL: ${MATTERMOST_WEBHOOK_URL}
entrypoint: ["sh", "-c"]
command:
- |
while true; do
npx tsx /app/scripts/send-reminders.ts
sleep 60
done
volumes:
vixtix-data: