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
|
worker/ Python — chat-downloader, sinyal analizi, Whisper STT
|
||||||
packages/
|
packages/
|
||||||
db/ Prisma schema + client (Node tarafı)
|
db/ Prisma schema + client (Node tarafı)
|
||||||
infra/
|
docker-compose.yml
|
||||||
docker-compose.yml
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Ön Koşullar
|
## Ön Koşullar
|
||||||
@@ -42,7 +41,7 @@ pnpm install
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Redis + Postgres'i ayağa kaldır
|
# 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
|
# Şemayı uygula
|
||||||
pnpm db:migrate
|
pnpm db:migrate
|
||||||
@@ -68,7 +67,7 @@ python -m worker.main
|
|||||||
### Docker Compose ile (tüm servisler)
|
### Docker Compose ile (tüm servisler)
|
||||||
|
|
||||||
```bash
|
```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
|
Panel: http://localhost:3000 · API daemon health: http://localhost:4001/health
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ services:
|
|||||||
|
|
||||||
sc_api_daemon:
|
sc_api_daemon:
|
||||||
build:
|
build:
|
||||||
context: ..
|
context: .
|
||||||
dockerfile: apps/api-daemon/Dockerfile
|
dockerfile: apps/api-daemon/Dockerfile
|
||||||
environment:
|
environment:
|
||||||
REDIS_URL: redis://sc_redis:6379
|
REDIS_URL: redis://sc_redis:6379
|
||||||
@@ -41,7 +41,7 @@ services:
|
|||||||
|
|
||||||
sc_heavy_worker:
|
sc_heavy_worker:
|
||||||
build:
|
build:
|
||||||
context: ..
|
context: .
|
||||||
dockerfile: apps/worker/Dockerfile
|
dockerfile: apps/worker/Dockerfile
|
||||||
environment:
|
environment:
|
||||||
REDIS_URL: redis://sc_redis:6379
|
REDIS_URL: redis://sc_redis:6379
|
||||||
@@ -59,7 +59,7 @@ services:
|
|||||||
|
|
||||||
sc_frontend:
|
sc_frontend:
|
||||||
build:
|
build:
|
||||||
context: ..
|
context: .
|
||||||
dockerfile: apps/frontend/Dockerfile
|
dockerfile: apps/frontend/Dockerfile
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgresql://streamclipper:streamclipper@sc_postgres:5432/streamclipper
|
DATABASE_URL: postgresql://streamclipper:streamclipper@sc_postgres:5432/streamclipper
|
||||||
Reference in New Issue
Block a user