infra: docker-compose.yml'i repo köküne taşı
Coolify build sırasında --project-directory olarak repo kökünü kullanıyor; compose dosyası infra/ altındayken build context: ".." /artifacts/apps yerine /artifacts/../apps'e (repo dışına) çözümleniyor ve "lstat /artifacts/apps: no such file or directory" hatasıyla patlıyordu. Dosyayı köke taşıyıp context: "." yaparak hem Coolify hem de lokal `docker compose up` çağrısı için tutarlı hale getirdik. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -16,8 +16,7 @@ apps/
|
||||
worker/ Python — chat-downloader, sinyal analizi, Whisper STT
|
||||
packages/
|
||||
db/ Prisma schema + client (Node tarafı)
|
||||
infra/
|
||||
docker-compose.yml
|
||||
docker-compose.yml
|
||||
```
|
||||
|
||||
## Ön Koşullar
|
||||
@@ -42,7 +41,7 @@ pnpm install
|
||||
|
||||
```bash
|
||||
# Redis + Postgres'i ayağa kaldır
|
||||
docker compose -f infra/docker-compose.yml up sc_redis sc_postgres
|
||||
docker compose up sc_redis sc_postgres
|
||||
|
||||
# Şemayı uygula
|
||||
pnpm db:migrate
|
||||
@@ -68,7 +67,7 @@ python -m worker.main
|
||||
### Docker Compose ile (tüm servisler)
|
||||
|
||||
```bash
|
||||
docker compose -f infra/docker-compose.yml up --build
|
||||
docker compose up --build
|
||||
```
|
||||
|
||||
Panel: http://localhost:3000 · API daemon health: http://localhost:4001/health
|
||||
|
||||
@@ -19,7 +19,7 @@ services:
|
||||
|
||||
sc_api_daemon:
|
||||
build:
|
||||
context: ..
|
||||
context: .
|
||||
dockerfile: apps/api-daemon/Dockerfile
|
||||
environment:
|
||||
REDIS_URL: redis://sc_redis:6379
|
||||
@@ -41,7 +41,7 @@ services:
|
||||
|
||||
sc_heavy_worker:
|
||||
build:
|
||||
context: ..
|
||||
context: .
|
||||
dockerfile: apps/worker/Dockerfile
|
||||
environment:
|
||||
REDIS_URL: redis://sc_redis:6379
|
||||
@@ -59,7 +59,7 @@ services:
|
||||
|
||||
sc_frontend:
|
||||
build:
|
||||
context: ..
|
||||
context: .
|
||||
dockerfile: apps/frontend/Dockerfile
|
||||
environment:
|
||||
DATABASE_URL: postgresql://streamclipper:streamclipper@sc_postgres:5432/streamclipper
|
||||
Reference in New Issue
Block a user