-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
105 lines (98 loc) · 2.32 KB
/
docker-compose.yaml
File metadata and controls
105 lines (98 loc) · 2.32 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
services:
rasa:
build:
context: ./rasa
dockerfile: RasaNgrok.Dockerfile
container_name: rasa_bot
env_file: .env
volumes:
- rasa_vol:/app
ports:
- "${RASA_PORT}:5005" # porta Rasa
- "${NGROK_PORT}:4040"
depends_on:
action_server:
condition: service_started
fastapi_inference_api:
condition: service_started
redis:
condition: service_healthy
fastapi_inference_api:
build:
context: ./api
dockerfile: Dockerfile
container_name: fastapi_inference_api
env_file: .env
volumes:
- fastapi_inference_vol:/app
- ./dataset/AIS_Dataset_csv_FocusArea/ais_data_2020_p_1.csv:/app/AIS_Dataset_csv_FocusArea/ais_data_2020_p_1.csv
ports:
- "${INFERENCE_API_PORT}:${INFERENCE_API_PORT}"
command: ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "${INFERENCE_API_PORT}"]
action_server:
build:
context: ./actions
dockerfile: Dockerfile
container_name: rasa_actions
env_file: .env
depends_on:
redis:
condition: service_healthy
volumes:
- rasa_actions_volume:/app
ports:
- "${ACTION_SERVER_PORT}:${ACTION_SERVER_PORT}"
command: ["run", "actions", "-p", "${ACTION_SERVER_PORT}", "--debug"]
redis:
build:
context: ./redis
dockerfile: Dockerfile.redis
container_name: "redis"
restart: always
env_file: .env
expose:
- "${REDIS_PORT}"
ports:
- "${REDIS_PORT}:${REDIS_PORT}"
volumes:
- redis_data:/data
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 3
redis_commander:
image: rediscommander/redis-commander:latest
container_name: "redis_commander"
ports:
- "8081:8081"
environment:
- REDIS_HOSTS=local:redis:6379
depends_on:
redis:
condition: service_healthy
volumes:
rasa_vol:
driver: local
driver_opts:
type: none
device: ./rasa
o: bind
rasa_actions_volume:
driver: local
driver_opts:
type: none
device: ./actions
o: bind
redis_data:
driver: local
driver_opts:
type: none
device: ./redis
o: bind
fastapi_inference_vol:
driver: local
driver_opts:
type: none
device: ./api
o: bind