File size: 457 Bytes
da11987
 
 
 
 
 
c69ba47
da11987
abaf90f
da11987
 
 
c69ba47
da11987
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
services:
  webapp:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "8000:7860"  # Map container port 7860 to localhost:8000
    volumes:
      - ./webapp:/app/webapp  # Code mount for development
    environment:
      - DEBUG=true
    healthcheck:
      test: ["CMD", "python", "-c", "import httpx; httpx.get('http://localhost:7860/api/health')"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 10s