-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
108 lines (99 loc) · 2.18 KB
/
docker-compose.yml
File metadata and controls
108 lines (99 loc) · 2.18 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
102
103
104
105
106
107
108
version: "3.7"
services:
web:
build:
context: ./if/web
ports:
- "3000:3000"
environment:
- VITE_API_URL=http://localhost:8000
depends_on:
- backend
networks:
- rtca-net
volumes:
- ./if/web:/app
backend:
build:
context: .
dockerfile: ./docker/dockerfile
container_name: fastapi
command: uvicorn interfaces.api_server.main:app --host 0.0.0.0 --port 8000 --reload
volumes:
- ./:/app
env_file:
- .env
depends_on:
- rasa
- redis
ports:
- "8000:8000"
networks:
- rtca-net
api:
build:
context: .
dockerfile: ./docker/dockerfile.api
ports:
- "8001:8000" # Expose container's 8000 port on host 8001
environment:
- RASA_API_URL=http://rasa:5005
networks:
- rtca-net
rasa:
build:
context: .
dockerfile: ./docker/dockerfile.rasa
container_name: rasa_container
command: >
bash -c "rasa train && rasa run --enable-api --cors '*' --port 5005 --endpoints /app/rasa_core/endpoints.yml --actions actions"
volumes:
- ./rasa_core:/app/rasa_core
- ./data:/app/data
- ./rasa_core/models:/app/models
- ./rasa_core/actions:/app/actions
environment:
- TZ=UTC
ports:
- "5005:5005"
networks:
- rtca-net
redis:
image: redis:7-alpine
container_name: redis
volumes:
- redis_data:/data
ports:
- "6379:6379"
networks:
- rtca-net
nginx:
image: nginx:1.25-alpine
container_name: nginx
ports:
- "${NGINX_PORT:-80}:80"
volumes:
- ./docker/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- backend
- rasa
- web
networks:
- rtca-net
# Optional: Admin panel (uncomment if needed)
# admin_panel:
# build:
# context: .
# dockerfile: Dockerfile.admin
# container_name: admin_panel
# depends_on:
# - backend
# ports:
# - "8080:80"
# networks:
# - rtca-net
volumes:
redis_data:
networks:
rtca-net:
driver: bridge