Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BCrwHHnGCB5XH968Nxokqw
55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
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:
|