You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This directory contains Docker configuration files for running the FluentAI backend service.
4
+
5
+
## 📂 Directory Structure
6
+
```
7
+
FluentAI/
8
+
├── config.yaml # Root-level configuration file
9
+
├── backend/
10
+
│ ├── docker/ # This directory
11
+
│ │ ├── Dockerfile # Main Dockerfile for Linux NVIDIA
12
+
│ │ ├── Dockerfile.mac # Special Dockerfile for Apple Silicon
13
+
│ │ ├── docker-compose.yml
14
+
│ │ └── README.md
15
+
```
16
+
## ⚙️ Configuration
17
+
The Docker setup uses the project's root-level configuration file at /FluentAI/config.yaml. Make sure this file exists and contains the necessary configuration.
18
+
19
+
## 🚀 Usage
20
+
Run all commands from the docker directory:
21
+
```
22
+
/FluentAI/backend/docker
23
+
```
24
+
### Choose the appropriate version for your hardware:
25
+
#### 🖥️ For Linux/Windows with NVIDIA GPU:
26
+
```
27
+
docker-compose up -d fluentai-gpu
28
+
```
29
+
#### 💻 For Linux/Windows CPU only:
30
+
```
31
+
docker-compose up -d fluentai-cpu
32
+
```
33
+
#### 🍎 For Apple Silicon Macs (⚠️ work in progress 🚧):
34
+
```
35
+
docker-compose up -d fluentai-apple
36
+
```
37
+
38
+
### 🌐 View logs:
39
+
```
40
+
docker-compose logs -f
41
+
```
42
+
43
+
### 📊 Accessing the API
44
+
- CPU version: http://localhost:8000
45
+
- GPU version: http://localhost:8001
46
+
- Apple Silicon version: http://localhost:8002
47
+
48
+
The FastAPI documentation is available at /docs (e.g., http://localhost:8000/docs)
49
+
or visit: https://fastapi.tiangolo.com/#example-upgrade
50
+
51
+
### 🛑 Stopping the Containers
52
+
```
53
+
docker-compose down
54
+
```
55
+
56
+
### 🔄 Rebuilding after Code Changes
57
+
```
58
+
docker-compose up -d --build fluentai-[cpu|gpu|apple]
59
+
```
60
+
### 💾 Data Persistence
61
+
The following Docker volumes are used for data persistence:
0 commit comments