File size: 1,920 Bytes
e7d37f3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
version: '3.8'

services:
  # Gateway/Orquestrador (porta 8080)
  gateway:
    build:
      context: ./gateway
      dockerfile: Dockerfile
    ports:
      - "8080:8080"
    depends_on:
      - whisper
      - llm
      - tts
      - musetalk
    environment:
      - WHISPER_URL=http://whisper:5001
      - LLM_URL=http://llm:5002
      - TTS_URL=http://tts:5003
      - MUSETALK_URL=http://musetalk:5004
    networks:
      - microservices
    restart: unless-stopped

  # Whisper Service (STT - porta 5001)
  whisper:
    build:
      context: ./services/whisper
      dockerfile: Dockerfile
    ports:
      - "5001:5001"
    networks:
      - microservices
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:5001/health"]
      interval: 10s
      timeout: 5s
      retries: 3

  # LLM Service (porta 5002)
  llm:
    build:
      context: ./services/llm
      dockerfile: Dockerfile
    ports:
      - "5002:5002"
    networks:
      - microservices
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:5002/health"]
      interval: 10s
      timeout: 5s
      retries: 3

  # TTS Service (porta 5003)
  tts:
    build:
      context: ./services/tts
      dockerfile: Dockerfile
    ports:
      - "5003:5003"
    networks:
      - microservices
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:5003/health"]
      interval: 10s
      timeout: 5s
      retries: 3

  # MuseTalk Service (Avatar - porta 5004)
  musetalk:
    build:
      context: ./services/musetalk
      dockerfile: Dockerfile
    ports:
      - "5004:5004"
    networks:
      - microservices
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:5004/health"]
      interval: 10s
      timeout: 5s
      retries: 3

networks:
  microservices:
    driver: bridge