File size: 743 Bytes
ead2510
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
version: '3.8'

services:
  mongodb:
    image: mongo:5.0
    environment:
      MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER:-mongouser}
      MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD:-mongopassword}
    volumes:
      - mongo_data:/data/db

  pyscout-api:
    build: .
    depends_on:
      - mongodb
    environment:
      - MONGODB_URI=mongodb://${MONGO_USER:-mongouser}:${MONGO_PASSWORD:-mongopassword}@mongodb:27017/pyscout_ai?authSource=admin
      - PYSCOUT_MODE=api
    ports:
      - "8000:8000"

  gradio-ui:
    build: .
    depends_on:
      - pyscout-api
    environment:
      - PYSCOUT_MODE=ui
      - API_BASE_URL=http://pyscout-api:8000
    ports:
      - "7860:7860"

volumes:
  mongo_data: