File size: 778 Bytes
583e2d6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
services:
  # First Ollama container (mistral)
  ollama_mistral:
    build:
      context: .
      dockerfile: docker/ollama_mistral/Dockerfile
    container_name: ollama_mistral
    ports:
      - "11434:11434"  # Expose Ollama on port 11434 for Mistral
    volumes:
      - ollama_mistral_models:/root/.ollama
    environment:
      - OLLAMA_KEEP_ALIVE=-1
      - OLLAMA_NUM_PARALLEL=1

  # Chainlit-based app
  app:
    build:
      context: .
      dockerfile: docker/chainlit_app/Dockerfile
    container_name: chainlit_app
    ports:
      - "7860:7860"
    environment:
      - HOST=0.0.0.0
      - LISTEN_PORT=7860
      - OLLAMA_MISTRAL_URL=http://ollama_mistral:11434
    depends_on:
      - ollama_mistral

volumes:
  ollama_mistral_models:
  ollama_openorca_models: