Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 2 additions & 74 deletions conductor.json
Original file line number Diff line number Diff line change
@@ -1,78 +1,6 @@
{
"name": "myelectricaldata-dev",
"description": "Environnement de développement Docker Compose avec ports dynamiques",
"onStart": {
"command": "./scripts/conductor-start.sh",
"description": "Démarre les services frontend et backend avec ports libres",
"waitForReady": true,
"timeout": 180
},
"onStop": {
"command": "./scripts/conductor-stop.sh",
"description": "Arrête les services Docker Compose"
},
"services": {
"frontend": {
"type": "docker-compose",
"service": "frontend",
"portVariable": "FRONTEND_PORT",
"defaultPort": 8000,
"healthCheck": "http://localhost:${FRONTEND_PORT}"
},
"backend": {
"type": "docker-compose",
"service": "backend",
"portVariable": "BACKEND_PORT",
"defaultPort": 8081,
"healthCheck": "http://localhost:${BACKEND_PORT}/ping"
}
},
"infrastructure": {
"redis": {
"type": "external",
"envFile": ".env.local",
"envVariable": "REDIS_URL",
"default": "redis://localhost:6379/0"
},
"postgres": {
"type": "external",
"envFile": ".env.local",
"envVariable": "DATABASE_URL",
"default": "postgresql+asyncpg://myelectricaldata:mySecurePassword2025@localhost:5432/myelectricaldata"
}
},
"scripts": {
"start": {
"command": "./scripts/conductor-start.sh",
"description": "Démarre les services frontend et backend"
},
"stop": {
"command": "./scripts/conductor-stop.sh",
"description": "Arrête les services Docker Compose"
},
"logs": {
"command": "docker compose logs -f frontend backend",
"description": "Affiche les logs des services"
},
"logs:backend": {
"command": "docker compose logs -f backend",
"description": "Affiche les logs du backend"
},
"logs:frontend": {
"command": "docker compose logs -f frontend",
"description": "Affiche les logs du frontend"
},
"restart": {
"command": "docker compose restart frontend backend",
"description": "Redémarre les services"
},
"status": {
"command": "docker compose ps",
"description": "Affiche le statut des services"
}
},
"env": {
"COMPOSE_PROJECT_NAME": "med-${CONDUCTOR_BRANCH_SLUG}",
"CONDUCTOR_BRANCH_SLUG": "${CONDUCTOR_BRANCH_SLUG:-dev}"
"setup": "./scripts/conductor-start.sh",
"run": "docker compose -f docker-compose.conductor.yml -f docker-compose.override.yml logs -f frontend backend"
Copy link

Copilot AI Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The run script references docker-compose.override.yml, but this file is generated by the setup script (conductor-start.sh at line 119-140). If Conductor runs the run command before the setup command has completed, or if docker-compose.override.yml doesn't exist, this command will fail.

Consider either:

  1. Making the command more resilient by checking if the override file exists, or
  2. Using environment variables exported by the setup script instead of relying on the generated override file, or
  3. Adding a comment in the configuration to document this dependency

Example resilient approach:

"run": "[ -f docker-compose.override.yml ] && docker compose -f docker-compose.conductor.yml -f docker-compose.override.yml logs -f frontend backend || echo 'Setup not complete. Run setup first.'"
Suggested change
"run": "docker compose -f docker-compose.conductor.yml -f docker-compose.override.yml logs -f frontend backend"
"run": "[ -f docker-compose.override.yml ] && docker compose -f docker-compose.conductor.yml -f docker-compose.override.yml logs -f frontend backend || echo 'Setup not complete. Run setup first.'"

Copilot uses AI. Check for mistakes.
}
}