File size: 671 Bytes
e266831
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
version: '3.8'

services:
  streamlit-app:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: counterfactual-generator
    ports:
      - "8501:8501"
    volumes:
      # Mount data directory if needed
      - ./data:/app/data:ro
      # Mount output directory for persistence
      - ./output:/app/output
      # Mount temp output directory
      - ./temp_output:/app/temp_output
    environment:
      - PYTHONUNBUFFERED=1
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "python", "-c", "import streamlit; print('OK')"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 40s