fix: deployment — resolve dependency conflicts, add initial migration, CI/CD webhook
- Fix httpx/pydantic/redis version conflicts for litellm/aiogram/celery compatibility - Add PYTHONPATH=/app to Dockerfile for alembic module resolution - Skip Telegram webhook setup when URL is not HTTPS - Fix FileUpload prop type mismatch in RecordingsPage - Add alembic script.py.mako template and initial migration - Configure docker-compose: port 8081, built frontend, no exposed internal ports - Add deploy.sh and webhook-server.js for Gitea CI/CD auto-deploy Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+7
-9
@@ -2,8 +2,8 @@ services:
|
||||
app:
|
||||
build: ./backend
|
||||
env_file: .env
|
||||
ports:
|
||||
- "8000:8000"
|
||||
expose:
|
||||
- "8000"
|
||||
volumes:
|
||||
- uploads:/app/uploads
|
||||
- exports:/app/exports
|
||||
@@ -12,6 +12,7 @@ services:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
working_dir: /app
|
||||
command: >
|
||||
sh -c "alembic upgrade head && uvicorn app.main:app --host 0.0.0.0 --port 8000"
|
||||
|
||||
@@ -45,8 +46,6 @@ services:
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
ports:
|
||||
- "6379:6379"
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
@@ -57,7 +56,7 @@ services:
|
||||
image: postgres:16-alpine
|
||||
env_file: .env
|
||||
ports:
|
||||
- "5432:5432"
|
||||
- "5433:5432"
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
@@ -66,13 +65,12 @@ services:
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
frontend:
|
||||
build: ./frontend
|
||||
ports:
|
||||
- "80:80"
|
||||
- "8081:80"
|
||||
volumes:
|
||||
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
- ./frontend/dist:/usr/share/nginx/html
|
||||
depends_on:
|
||||
- app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user