fix(env): 要求配置 SoH 预测服务
This commit is contained in:
@@ -26,6 +26,7 @@ services:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- DATABASE_URL=mysql://battery:battery@db:3306/battery_soh
|
||||
- SOH_PREDICTION_API_BASE_URL=http://host.docker.internal:8000
|
||||
command: [ "bun", "run", "seed" ]
|
||||
|
||||
app:
|
||||
@@ -33,6 +34,8 @@ services:
|
||||
depends_on:
|
||||
seed:
|
||||
condition: service_completed_successfully
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user