version: '3.8' services: streamlit: build: . working_dir: /app command: streamlit run app/main.py --server.port=8501 --server.address=0.0.0.0 ports: - "8501:8501" environment: - EXAOCR_API_URL=http://192.168.1.151:45001 volumes: - ./data/uploads:/app/data/uploads - ./data/results:/app/data/results healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8501/_stcore/health"] interval: 30s timeout: 10s retries: 3 deploy: resources: limits: memory: 4G api: build: . working_dir: /app command: uvicorn app.api:app --host 0.0.0.0 --port 8000 ports: - "8000:8000" environment: - EXAOCR_API_URL=http://192.168.1.151:45001 volumes: - ./data/uploads:/app/data/uploads - ./data/results:/app/data/results healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/health"] interval: 30s timeout: 10s retries: 3 deploy: resources: limits: memory: 2G