mode = "hybrid"
max_slots = 6
prefix = "ecluse"

# Rails API: slot 1 → ECLUSE_API_PORT=3001 + PORT alias, slot 2 → 3002
[[services]]
name = "api"
base_port = 3000

# Angular dev server: slot 1 → ECLUSE_FRONTEND_PORT=4201, slot 2 → 4202
[[services]]
name = "frontend"
base_port = 4200

# Data services — rewritten in compose overlay
[[services]]
name = "postgres"
run = "docker"
base_port = 5432

[[services]]
name = "redis"
run = "docker"
base_port = 6379

[hooks]
on_up = "bin/rails db:prepare"
on_down = "bin/rails db:drop DISABLE_DATABASE_ENVIRONMENT_CHECK=1"
