-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
101 lines (94 loc) · 1.98 KB
/
docker-compose.yml
File metadata and controls
101 lines (94 loc) · 1.98 KB
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
services:
cyborgdb:
image: cyborginc/cyborgdb-service:latest
container_name: flux-cyborgdb
env_file:
- ./.env
volumes:
- cyborgdb-data:/home/cyborguser/.cyborgdb
- ./logs:/app/logs
networks:
- internal
postgres:
container_name: flux-postgres
image: postgres:16-alpine
env_file:
- ./.env
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U flux -d fluxdb"]
interval: 10s
timeout: 5s
retries: 5
networks:
- internal
md-service:
build: ./backend/src/scripts
container_name: flux-python-md-service
env_file:
- ./.env
depends_on:
cyborgdb:
condition: service_started
ollama:
condition: service_healthy
networks:
- internal
volumes:
- uploads:/app/uploads
ollama:
image: ollama/ollama:latest
container_name: flux-ollama
volumes:
- ollama_models:/root/.ollama
networks:
- internal
healthcheck:
test: ["CMD", "ollama", "list"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
entrypoint: /bin/sh
command: -c "ollama serve & sleep 5 && ollama pull nomic-embed-text && wait"
backend:
build: ./backend
container_name: flux-backend
ports:
- "3008:3008"
env_file:
- ./.env
depends_on:
- postgres
- md-service
networks:
- internal
- external
volumes:
- uploads:/app/uploads
frontend:
build:
context: ./frontend
args:
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
- NEXT_PUBLIC_FRONTEND_URL=${NEXT_PUBLIC_FRONTEND_URL}
container_name: flux-frontend
ports:
- "3000:3000"
env_file:
- ./.env
depends_on:
- backend
networks:
- external
networks:
internal:
driver: bridge
external:
driver: bridge
volumes:
cyborgdb-data:
postgres_data:
ollama_models:
uploads: