File size: 877 Bytes
ee117a1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
37
38
39
40
41
42
43
# Docker Compose for local development and testing
#
# Start with: docker-compose up --build
# Access server at: http://localhost:8000
# Docs at: http://localhost:8000/docs
# WebSocket at: ws://localhost:8000/ws

version: "3.9"

services:
  medical-diagnostic-env:
    build:
      context: .
      dockerfile: server/Dockerfile
    
    container_name: medical-diagnostic-env
    
    ports:
      - "8000:8000"
    
    environment:
      - PORT=8000
      - WORKERS=2  # Reduce for local development
    
    restart: unless-stopped
    
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 5s
    
    volumes:
      - .:/app  # For live code reloading during development (optional)
    
    networks:
      - medical-net

networks:
  medical-net:
    driver: bridge