-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 1.22 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
networks:
genai_chat_net:
external: true
services:
nginx:
image: nginx-base
container_name: "nginx"
ports:
- 8080:80
networks:
- genai_chat_net
depends_on:
- genai-chat-backend
genai-chat-backend:
image: genai-chat-backend
container_name: 'genai-chat-backend'
restart: always
ports:
- 5000:5000
command: ["/bin/sh", "-c","python3 app.py"]
env_file:
- ".env"
deploy:
resources:
limits:
#cpu: "2"
memory: 2048M
networks:
- genai_chat_net
redis-stack:
image: redis/redis-stack:latest # Provides both Redis Stack Server and RedisInsight. This container is best for LOCAL DEPLOYMENT because you can use the embedded RedisInsight to visualize your data.
# image: redis/redis-stack-server:latest # Provides Redis Stack Server only. This container is best for PRODUCTION DEPLOYMENT.
container_name: "redis-stack"
restart: always
ports:
- 6379:6379
- 8001:8001 # RedisInsight
volumes:
- ./data:/data # Stores redis dump file in projects root data folder
deploy:
resources:
limits:
#cpu: "2"
memory: 2048M
networks:
- genai_chat_net