Spaces:
Runtime error
Runtime error
Really-amin
commited on
Commit
•
11c1428
1
Parent(s):
80d6b2d
Upload docker-compose.yml
Browse files- docker-compose.yml +37 -0
docker-compose.yml
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
version: '3.9'
|
2 |
+
|
3 |
+
services:
|
4 |
+
ai-assistant:
|
5 |
+
build:
|
6 |
+
context: .
|
7 |
+
dockerfile: Dockerfile
|
8 |
+
container_name: ai-assistant
|
9 |
+
ports:
|
10 |
+
- "7860:7860"
|
11 |
+
environment:
|
12 |
+
- HF_HOME=/app/cache
|
13 |
+
- TELEGRAM_TOKEN=7437859619:AAGeGG3ZkLM0OVaw-Exx1uMRE55JtBCZZCY
|
14 |
+
- CHAT_ID=-1002228627548
|
15 |
+
- PYTHONUNBUFFERED=1
|
16 |
+
- TZ=Asia/Tehran
|
17 |
+
volumes:
|
18 |
+
- ./cache:/app/cache
|
19 |
+
- ./static:/app/static
|
20 |
+
deploy:
|
21 |
+
resources:
|
22 |
+
limits:
|
23 |
+
memory: 4G
|
24 |
+
reservations:
|
25 |
+
memory: 2G
|
26 |
+
healthcheck:
|
27 |
+
test: ["CMD", "curl", "-f", "http://localhost:7860"]
|
28 |
+
interval: 30s
|
29 |
+
timeout: 10s
|
30 |
+
retries: 3
|
31 |
+
restart: unless-stopped
|
32 |
+
networks:
|
33 |
+
- ai-network
|
34 |
+
|
35 |
+
networks:
|
36 |
+
ai-network:
|
37 |
+
driver: bridge
|