Skip to content

Commit a39425a

Browse files
m4dm4rtig4nClément VALENTINclaude
authored
fix(conductor): simplify config format for app detection (#80)
Update conductor.json to use the correct Conductor app format with only 'setup' and 'run' scripts. This enables dynamic port allocation and proper service initialization. Removes unsupported custom properties. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Clément VALENTIN <[email protected]> Co-authored-by: Claude <[email protected]>
1 parent d93523b commit a39425a

File tree

1 file changed

+2
-74
lines changed

1 file changed

+2
-74
lines changed

conductor.json

Lines changed: 2 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,6 @@
11
{
2-
"name": "myelectricaldata-dev",
3-
"description": "Environnement de développement Docker Compose avec ports dynamiques",
4-
"onStart": {
5-
"command": "./scripts/conductor-start.sh",
6-
"description": "Démarre les services frontend et backend avec ports libres",
7-
"waitForReady": true,
8-
"timeout": 180
9-
},
10-
"onStop": {
11-
"command": "./scripts/conductor-stop.sh",
12-
"description": "Arrête les services Docker Compose"
13-
},
14-
"services": {
15-
"frontend": {
16-
"type": "docker-compose",
17-
"service": "frontend",
18-
"portVariable": "FRONTEND_PORT",
19-
"defaultPort": 8000,
20-
"healthCheck": "http://localhost:${FRONTEND_PORT}"
21-
},
22-
"backend": {
23-
"type": "docker-compose",
24-
"service": "backend",
25-
"portVariable": "BACKEND_PORT",
26-
"defaultPort": 8081,
27-
"healthCheck": "http://localhost:${BACKEND_PORT}/ping"
28-
}
29-
},
30-
"infrastructure": {
31-
"redis": {
32-
"type": "external",
33-
"envFile": ".env.local",
34-
"envVariable": "REDIS_URL",
35-
"default": "redis://localhost:6379/0"
36-
},
37-
"postgres": {
38-
"type": "external",
39-
"envFile": ".env.local",
40-
"envVariable": "DATABASE_URL",
41-
"default": "postgresql+asyncpg://myelectricaldata:mySecurePassword2025@localhost:5432/myelectricaldata"
42-
}
43-
},
442
"scripts": {
45-
"start": {
46-
"command": "./scripts/conductor-start.sh",
47-
"description": "Démarre les services frontend et backend"
48-
},
49-
"stop": {
50-
"command": "./scripts/conductor-stop.sh",
51-
"description": "Arrête les services Docker Compose"
52-
},
53-
"logs": {
54-
"command": "docker compose logs -f frontend backend",
55-
"description": "Affiche les logs des services"
56-
},
57-
"logs:backend": {
58-
"command": "docker compose logs -f backend",
59-
"description": "Affiche les logs du backend"
60-
},
61-
"logs:frontend": {
62-
"command": "docker compose logs -f frontend",
63-
"description": "Affiche les logs du frontend"
64-
},
65-
"restart": {
66-
"command": "docker compose restart frontend backend",
67-
"description": "Redémarre les services"
68-
},
69-
"status": {
70-
"command": "docker compose ps",
71-
"description": "Affiche le statut des services"
72-
}
73-
},
74-
"env": {
75-
"COMPOSE_PROJECT_NAME": "med-${CONDUCTOR_BRANCH_SLUG}",
76-
"CONDUCTOR_BRANCH_SLUG": "${CONDUCTOR_BRANCH_SLUG:-dev}"
3+
"setup": "./scripts/conductor-start.sh",
4+
"run": "docker compose -f docker-compose.conductor.yml -f docker-compose.override.yml logs -f frontend backend"
775
}
786
}

0 commit comments

Comments
 (0)