feat: add docker-compose stack (web/worker/scheduler/ml-worker + postgres + redis)
Prod compose references the Forgejo registry; dev compose builds locally and exposes DB/Redis ports. Volume layout: ./images, ./import, ./downloads, ./models (all gitignored, anchored to repo root). Plain HTTP only — no TLS in-app (spec §2.1). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
services:
|
||||
postgres:
|
||||
ports:
|
||||
- "5432:5432"
|
||||
|
||||
redis:
|
||||
ports:
|
||||
- "6379:6379"
|
||||
|
||||
web:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
LOG_LEVEL: DEBUG
|
||||
volumes:
|
||||
- ./backend:/app/backend
|
||||
- ./alembic:/app/alembic
|
||||
|
||||
worker:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
LOG_LEVEL: DEBUG
|
||||
volumes:
|
||||
- ./backend:/app/backend
|
||||
|
||||
scheduler:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
LOG_LEVEL: DEBUG
|
||||
volumes:
|
||||
- ./backend:/app/backend
|
||||
|
||||
ml-worker:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.ml
|
||||
environment:
|
||||
LOG_LEVEL: DEBUG
|
||||
volumes:
|
||||
- ./backend:/app/backend
|
||||
Reference in New Issue
Block a user