-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
117 lines (112 loc) · 2.8 KB
/
docker-compose.yml
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
116
117
networks:
network_dpaas:
services:
# Base de données utilisée pour l'authentification par token
# Seulement utilisée par les composants DPAAS
db:
container_name: dpass_db
image: mariadb
restart: unless-stopped
networks:
- network_dpaas
environment:
MYSQL_DATABASE: auth
MYSQL_USER: dpaas
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
volumes:
- ./sql/init.sql:/docker-entrypoint-initdb.d/init.sql
# MinIO, stockage compatible S3 pour tout les fichiers nécessaires au stack DPAAS
minio:
container_name: dpass_minio
image: minio/minio
restart: unless-stopped
networks:
- network_dpaas
environment:
MINIO_ACCESS_KEY: ${S3_ACCESS_KEY}
MINIO_SECRET_KEY: ${S3_SECRET_KEY}
volumes:
- ./s3:/data:ro
command: server /data/dpaas
entrypoint: sh
# Génération TTS par IA
xtts:
container_name: dpass_xtts
build: ./xtts
image: dpass_xtts-api-server:latest
restart: unless-stopped
networks:
- network_dpaas
depends_on:
- db
environment:
DB_HOST: db
DB_NAME: auth
DB_USER: dpaas
DB_PASS: ${MYSQL_PASSWORD}
S3_HOST: minio
S3_ACCESS_KEY: ${S3_ACCESS_KEY}
S3_SECRET_KEY: ${S3_SECRET_KEY}
S3_BUCKET: "dpaas"
volumes:
- ./logs/xtts:/var/log/xtts/
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
ports:
- "5000:5000"
# Génération de vidéos par IA
face-animator:
container_name: dpass_face-animator
build: ./face-animator
image: dpass_face-animator:latest
restart: unless-stopped
networks:
- network_dpaas
depends_on:
- db
environment:
DB_HOST: db
DB_NAME: auth
DB_USER: dpaas
DB_PASS: ${MYSQL_PASSWORD}
S3_HOST: minio
S3_ACCESS_KEY: ${S3_ACCESS_KEY}
S3_SECRET_KEY: ${S3_SECRET_KEY}
S3_BUCKET: "dpaas"
volumes:
- ./logs/face-animator:/var/log/face-animator/
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
# Gestionnaire de conversation
conversation-manager:
container_name: dpass_conversation-manager
build: ./conversation-manager
image: dpass_conversation-manager:latest
restart: unless-stopped
networks:
- network_dpaas
depends_on:
- db
environment:
DB_HOST: db
DB_NAME: auth
DB_USER: dpaas
DB_PASS: ${MYSQL_PASSWORD}
S3_HOST: minio
S3_BUCKET: "dpaas"
OPENAI_API_KEY: ${OPENAI_API_KEY}
volumes:
- ./logs/conversation-manager:/var/log/conversation-manager/
ports:
- "5000:5000"