mirror of
https://github.com/Tony0410/nextstep.git
synced 2026-05-24 21:31:43 +08:00
Features added: - Emergency Info Card: Full-screen emergency view with patient info - Refill Tracker: Track pill counts with auto-decrement on dose - Activity Feed: View caregiver activity with filtering - Symptom Tracker: Log symptoms with severity and offline sync - Print Views: Daily meds, appointments, doctor visit summaries - iCal Export: Calendar subscription for appointments - PDF Export: Medical summary for doctor visits - Calendar View: Monthly calendar for appointments - Appointment Preparation: Checklist for upcoming appointments - Medication Reminders: PWA push notifications with quiet hours Bug fixes: - Fix invite workflow: Register/login now properly redirect back - Add undo for doctor questions (can unmark "asked" questions) - Fix API route type annotations for Next.js 14 compatibility - Add Suspense boundary for useSearchParams in login/register Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: nextstep-app
|
|
restart: unless-stopped
|
|
ports:
|
|
- "4678:3000" # Bind to all interfaces for Tailscale access
|
|
environment:
|
|
- DATABASE_URL=postgresql://nextstep:${DB_PASSWORD:-nextstep}@db:5432/nextstep?schema=public
|
|
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
|
|
- NEXT_PUBLIC_APP_URL=https://debianvm.kangaroo-eel.ts.net:10000
|
|
- TZ=Australia/Perth
|
|
- NODE_ENV=production
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
networks:
|
|
- nextstep-network
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://localhost:3000/api/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
db:
|
|
image: postgres:16-alpine
|
|
container_name: nextstep-db
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_USER=nextstep
|
|
- POSTGRES_PASSWORD=${DB_PASSWORD:-nextstep}
|
|
- POSTGRES_DB=nextstep
|
|
- TZ=Australia/Perth
|
|
- PGTZ=Australia/Perth
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
networks:
|
|
- nextstep-network
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U nextstep -d nextstep"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
# Expose PostgreSQL to localhost for migrations
|
|
ports:
|
|
- "127.0.0.1:5432:5432"
|
|
|
|
volumes:
|
|
postgres_data:
|
|
name: nextstep-postgres-data
|
|
|
|
networks:
|
|
nextstep-network:
|
|
name: nextstep-network
|
|
driver: bridge
|