-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
158 lines (150 loc) · 3.92 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
services:
valkey:
image: valkey/valkey:8.1-alpine
qdrant:
image: qdrant/qdrant:v1.13.2
ports:
- "127.0.0.1:6333:6333"
volumes:
- type: bind
source: ./data/qdrant
target: /qdrant/storage
analyser:
image: ghcr.io/astral-sh/uv:debian
volumes:
- type: bind
source: ./data/
target: /data/
- type: bind
source: ./data/analyser_venv
target: /fileharbor/.venv
- type: bind
source: ./data/ray/
target: /tmp/ray/
- type: bind
source: ./data/models/
target: /models/
- type: bind
source: ./analyser
target: /fileharbor/analyser
- type: bind
source: ./packages
target: /fileharbor/packages
- type: bind
source: ./backend
target: /fileharbor/backend
- type: bind
source: ./pyproject.toml
target: /fileharbor/pyproject.toml
- type: bind
source: ./.python-version
target: /fileharbor/.python-version
working_dir: /fileharbor/
environment:
- HF_HOME=/models
command: uv run --package analyser analyser/src/analyser/server.py -v -c analyser/config.json
postgres:
image: postgres:13.2
volumes:
- ./data/db/:/var/lib/postgresql/data
environment:
- POSTGRES_DB=fileharbor
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATA=/var/lib/postgresql/data/data/
ports:
- "127.0.0.1:5432:5432"
memcached:
image: memcached:1.6.10-buster
command: -I 32m
ports:
- "127.0.0.1:11211:11211"
backend:
image: ghcr.io/astral-sh/uv:debian
ports:
- "127.0.0.1:8000:8000"
volumes:
- type: bind
source: ./data/
target: /data/
- type: bind
source: ./data/backend_venv
target: /fileharbor/.venv
- type: bind
source: ./data/ray/
target: /tmp/ray/
- type: bind
source: ./data/models/
target: /models/
- type: bind
source: ./analyser
target: /fileharbor/analyser
- type: bind
source: ./packages
target: /fileharbor/packages
- type: bind
source: ./backend
target: /fileharbor/backend
- type: bind
source: ./pyproject.toml
target: /fileharbor/pyproject.toml
- type: bind
source: ./.python-version
target: /fileharbor/.python-version
working_dir: /fileharbor/
command: uv run --package backend python3 backend/src/backend/manage.py runserver 0.0.0.0:8000
depends_on:
- postgres
- memcached
celery:
image: ghcr.io/astral-sh/uv:debian
volumes:
- type: bind
source: ./data/
target: /data/
- type: bind
source: ./data/celery_venv
target: /fileharbor/.venv
- type: bind
source: ./data/ray/
target: /tmp/ray/
- type: bind
source: ./data/models/
target: /models/
- type: bind
source: ./analyser
target: /fileharbor/analyser
- type: bind
source: ./packages
target: /fileharbor/packages
- type: bind
source: ./backend
target: /fileharbor/backend
- type: bind
source: ./pyproject.toml
target: /fileharbor/pyproject.toml
- type: bind
source: ./.python-version
target: /fileharbor/.python-version
working_dir: /fileharbor/backend/src/backend/
environment:
- GRPC_ENABLE_FORK_SUPPORT=1
- GRPC_POLL_STRATEGY=poll
command: uv run --package backend celery -A fileharbor worker -l INFO
depends_on:
- postgres
- memcached
frontend:
image: fileharbor/frontend
build:
context: ./frontend
ports:
- "127.0.0.1:8080:80"
volumes:
- type: bind
source: ./frontend/
target: /frontend
- type: bind
source: ./data/
target: /data
working_dir: /frontend