version: '3.8' services: postgres: image: postgres:15-alpine container_name: wifi_etl_db environment: POSTGRES_DB: wifi_etl POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres volumes: - postgres_data:/var/lib/postgresql/data - ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro ports: - "5432:5432" healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 10s timeout: 5s retries: 5 restart: unless-stopped etl: build: context: .. dockerfile: infra/Dockerfile container_name: wifi_etl_worker env_file: - ../.env depends_on: postgres: condition: service_healthy environment: DB_HOST: postgres volumes: - etl_logs:/var/log restart: unless-stopped volumes: postgres_data: etl_logs: