services: app: build: context: . dockerfile: Dockerfile ports: - "8020:8020" env_file: .env depends_on: db: condition: service_healthy redis: condition: service_started worker: build: context: . dockerfile: Dockerfile command: celery -A app.tasks worker -l info env_file: .env depends_on: - db - redis db: image: postgres:14 environment: POSTGRES_DB: voidea POSTGRES_USER: voidea POSTGRES_PASSWORD: ${DB_PASS} volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U voidea"] interval: 5s timeout: 5s retries: 5 redis: image: redis:7 volumes: pgdata: