mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 16:26:43 +02:00
feat(nutriphi): migrate from Supabase to PostgreSQL + Hetzner S3
- Add nutriphi-database package with Drizzle ORM - meals and nutrition_goals schemas - PostgreSQL 16 Docker setup - Drizzle Kit configuration - Migrate backend from Supabase to Drizzle - Add DatabaseModule with connection pooling - Add StorageService for Hetzner Object Storage (S3-compatible) - Update MealsService with Drizzle queries - Add /api/meals/upload endpoint for image upload + analysis - Update web app to use backend for uploads - Remove Supabase Storage direct upload - Update uploadService to send images to backend - Remove Supabase dependencies from package.json - Simplify hooks.server.ts - Add Coolify deployment configuration - Dockerfile for production build - docker-compose.coolify.yml 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
ce71db2fc0
commit
6537863696
156 changed files with 15236 additions and 170 deletions
36
packages/nutriphi-database/docker-compose.yml
Normal file
36
packages/nutriphi-database/docker-compose.yml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: nutriphi-postgres
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- '5435:5432'
|
||||
environment:
|
||||
POSTGRES_DB: nutriphi
|
||||
POSTGRES_USER: nutriphi
|
||||
POSTGRES_PASSWORD: nutriphi_dev_password
|
||||
volumes:
|
||||
- nutriphi_postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ['CMD-SHELL', 'pg_isready -U nutriphi -d nutriphi']
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4:latest
|
||||
container_name: nutriphi-pgadmin
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- '5052:80'
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: admin@nutriphi.local
|
||||
PGADMIN_DEFAULT_PASSWORD: admin
|
||||
volumes:
|
||||
- nutriphi_pgadmin_data:/var/lib/pgadmin
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
volumes:
|
||||
nutriphi_postgres_data:
|
||||
nutriphi_pgadmin_data:
|
||||
Loading…
Add table
Add a link
Reference in a new issue