File size: 926 Bytes
1e10174
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Local stack: the API and the dashboard side by side.
#   docker compose up
#
# The image defaults to the Streamlit app on port 7860 (the Hugging Face Spaces
# convention). Both services override PORT explicitly so local ports stay
# familiar and the two containers do not collide.
services:
  api:
    build: .
    container_name: gridpulse-api
    environment:
      GRIDPULSE_SERVICE: api
      PORT: 8000
      EIA_API_KEY: ${EIA_API_KEY:-}
      GROQ_API_KEY: ${GROQ_API_KEY:-}
    ports:
      - "8000:8000"
    volumes:
      - ./data/gold:/app/data/gold
      - ./artifacts:/app/artifacts

  app:
    build: .
    container_name: gridpulse-app
    depends_on: [api]
    environment:
      GRIDPULSE_SERVICE: app
      PORT: 8501
      EIA_API_KEY: ${EIA_API_KEY:-}
      GROQ_API_KEY: ${GROQ_API_KEY:-}
    ports:
      - "8501:8501"
    volumes:
      - ./data/gold:/app/data/gold
      - ./artifacts:/app/artifacts