Skip to content

Commit

Permalink
Create docker-compose.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
christianlouis authored Feb 9, 2025
1 parent 24083e4 commit dc8d236
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: "3.8"

services:
api:
image: christianlouis/document-processor:latest
container_name: document_api
ports:
- "8000:8000"
env_file:
- .env
depends_on:
- redis
- worker
volumes:
- ./app:/app # Optional, for local development override

redis:
image: redis:alpine
container_name: document_redis
restart: always

worker:
image: christianlouis/document-processor:latest
container_name: document_worker
command: ["celery", "-A", "app.celery_worker.celery", "worker", "--loglevel=info"]
env_file:
- .env
depends_on:
- redis
volumes:
- ./app:/app # Optional, for local development override

0 comments on commit dc8d236

Please sign in to comment.