File size: 2,703 Bytes
5a81b95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
version: '3.8'

services:
  # PPTAgent Service
  pptagent:
    image: forceless/pptagent:latest
    container_name: widgetdc-pptagent
    ports:
      - "9297:9297"  # API
      - "8088:8088"  # UI
    environment:
      - OPENAI_API_KEY=${OPENAI_API_KEY}
      - LANGUAGE_MODEL=Qwen2.5-72B-Instruct
      - VISION_MODEL=gpt-4o-2024-08-06
      - TEXT_MODEL=text-embedding-3-small
    volumes:
      - ${USERPROFILE}:/root
      - pptagent-data:/data
    restart: unless-stopped
    networks:
      - widgetdc-network

  # MultiAgentPPT - Outline Service
  multiagent-outline:
    build:
      context: ./multiagent
      dockerfile: Dockerfile
    container_name: widgetdc-outline
    ports:
      - "10001:10001"
    environment:
      - OPENAI_API_KEY=${OPENAI_API_KEY}
      - SERVICE_TYPE=outline
    volumes:
      - multiagent-data:/app/data
    restart: unless-stopped
    networks:
      - widgetdc-network

  # MultiAgentPPT - Slides Service  
  multiagent-slides:
    build:
      context: ./multiagent
      dockerfile: Dockerfile
    container_name: widgetdc-slides
    ports:
      - "10011:10011"
    environment:
      - OPENAI_API_KEY=${OPENAI_API_KEY}
      - SERVICE_TYPE=slides
    volumes:
      - multiagent-data:/app/data
    restart: unless-stopped
    networks:
      - widgetdc-network

  # PostgreSQL Database
  postgres:
    image: postgres:15
    container_name: widgetdc-postgres-ppt
    ports:
      - "5433:5432"  # Using 5433 to avoid conflict with main WidgeTDC DB
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=welcome
      - POSTGRES_DB=widgetdc_ppt
    volumes:
      - postgres-data:/var/lib/postgresql/data
    restart: unless-stopped
    networks:
      - widgetdc-network

  # Redis Cache
  redis:
    image: redis:7-alpine
    container_name: widgetdc-redis-ppt
    ports:
      - "6380:6379"  # Using 6380 to avoid conflict
    volumes:
      - redis-data:/data
    restart: unless-stopped
    networks:
      - widgetdc-network

  # Template Service
  template-service:
    build:
      context: ../backend
      dockerfile: Dockerfile.template
    container_name: widgetdc-template-service
    ports:
      - "3010:3010"
    environment:
      - DATABASE_URL=postgresql://postgres:welcome@postgres:5432/widgetdc_ppt
      - REDIS_URL=redis://redis:6379
      - ZENODO10K_PATH=/data/Zenodo10K
    volumes:
      - C:\Users\claus\Projects\WidgeTDC\training-data\Zenodo10K:/data/Zenodo10K:ro
    depends_on:
      - postgres
      - redis
    restart: unless-stopped
    networks:
      - widgetdc-network

volumes:
  pptagent-data:
  multiagent-data:
  postgres-data:
  redis-data:

networks:
  widgetdc-network:
    driver: bridge