| version: '3.8' |
|
|
| services: |
| nz-legislation-analyzer: |
| build: |
| context: . |
| dockerfile: Dockerfile |
| ports: |
| - "8501:8501" |
| volumes: |
| |
| - ./streamlit_app/cache:/app/streamlit_app/cache |
| - ./streamlit_app/config:/app/streamlit_app/config |
| - ./streamlit_app/datasets:/app/streamlit_app/datasets |
| - ./streamlit_app/logs:/app/streamlit_app/logs |
| - ./nz-legislation.txt:/app/nz-legislation.txt:ro |
| environment: |
| - STREAMLIT_SERVER_HEADLESS=true |
| - STREAMLIT_BROWSER_GATHER_USAGE_STATS=false |
| - STREAMLIT_SERVER_PORT=8501 |
| - STREAMLIT_SERVER_ADDRESS=0.0.0.0 |
| restart: unless-stopped |
| healthcheck: |
| test: ["CMD", "curl", "-f", "http://localhost:8501/healthz"] |
| interval: 30s |
| timeout: 10s |
| retries: 3 |
| start_period: 40s |
|
|