|
1 | 1 | { |
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 | | - }, |
44 | 2 | "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" |
77 | 5 | } |
78 | 6 | } |
0 commit comments