services: app: build: context: . network: host network_mode: host env_file: .env depends_on: db: condition: service_healthy redis: condition: service_started volumes: - ./logs:/app/logs worker: build: context: . network: host network_mode: host command: celery -A app.tasks worker -l info --concurrency=2 env_file: .env depends_on: - db - redis beat: build: context: . network: host network_mode: host command: celery -A app.tasks beat -l info env_file: .env depends_on: - db - redis db: image: postgres:16-alpine network_mode: host environment: POSTGRES_DB: voidea POSTGRES_USER: voidea POSTGRES_PASSWORD: ${DB_PASS:-voidea_pass} command: -p 5444 volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U voidea -h localhost -p 5444"] interval: 5s timeout: 5s retries: 5 redis: image: redis:7-alpine network_mode: host command: redis-server --port 6380 volumes: pgdata: