services: app: build: context: ./core dockerfile: Dockerfile.dev volumes: - ./core:/app ports: - "8080:8000" env_file: ./core/.env depends_on: postgres: condition: service_healthy scheduler: build: context: ./core dockerfile: Dockerfile.dev command: php artisan schedule:work volumes: - ./core:/app env_file: ./core/.env depends_on: postgres: condition: service_healthy worker: build: context: ./core dockerfile: Dockerfile.dev command: php artisan queue:work --tries=3 --sleep=1 volumes: - ./core:/app env_file: ./core/.env depends_on: postgres: condition: service_healthy postgres: image: postgres:17 environment: POSTGRES_DB: hado POSTGRES_USER: hado POSTGRES_PASSWORD: hado volumes: - pg_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U hado -d hado"] interval: 5s timeout: 3s retries: 10 volumes: pg_data: