Spaces:
Sleeping
Sleeping
File size: 1,258 Bytes
fee2f22 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | version: "3.9"
services:
redis:
image: redis:7-alpine
ports:
- "6379:6379"
restart: unless-stopped
postgres:
image: postgres:16
environment:
POSTGRES_DB: data_cleaning
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
fastapi:
build:
context: .
dockerfile: Dockerfile
command: uvicorn backend.app:app --host 0.0.0.0 --port 8000 --reload
environment:
DATABASE_URL: postgresql+psycopg2://postgres:postgres@postgres:5432/data_cleaning
REDIS_URL: redis://redis:6379/0
ENVIRONMENT: dev
LOG_LEVEL: INFO
ports:
- "8000:8000"
depends_on:
- redis
- postgres
restart: unless-stopped
celery:
build:
context: .
dockerfile: Dockerfile
command: celery -A backend.tasks.cleaning_tasks worker --loglevel=info
environment:
DATABASE_URL: postgresql+psycopg2://postgres:postgres@postgres:5432/data_cleaning
REDIS_URL: redis://redis:6379/0
ENVIRONMENT: dev
LOG_LEVEL: INFO
depends_on:
- redis
- postgres
restart: unless-stopped
volumes:
postgres_data:
|