-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
57 lines (50 loc) · 1.01 KB
/
docker-compose.yaml
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
version: "3.8"
x-volumes: &volumes
- type: volume
source: shared-volume
target: /home/chatbot_fastapi/app/
services:
chatbot_fastapi:
# platform: linux/amd64
build:
context: .
dockerfile: Dockerfile.api
volumes: *volumes
runtime: nvidia
networks:
- internal
- shared
container_name: ${COMPOSE_PROJECT_NAME}
ports:
- ${PORT}:5300
env_file:
- .env
streamlit_app:
build:
context: .
dockerfile: Dockerfile.gui
ports:
- 8501:8501
volumes:
- .:/app
networks:
- internal
- shared
depends_on:
- chatbot_fastapi
env_file:
- .env.gui
redis:
image: 'redis/redis-stack-server:latest'
networks:
- internal
- shared
ports:
- 6379:6379
environment:
- ALLOW_EMPTY_PASSWORD=yes
volumes:
shared-volume:
networks:
internal:
shared: