-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 1013 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (44 loc) · 1013 Bytes
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
services:
gui:
build:
context: ./src/gui
ports:
- "127.0.0.1:8501:8501"
volumes:
- ./gui:/app
container_name: streamlit-gui
depends_on:
redis:
condition: service_healthy
test_engine:
condition: service_healthy
environment:
- ROBOT_API_URL=http://test_engine
- ROBOT_API_PORT=5000
- REDIS_HOST=redis
- REDIS_PORT=6379
redis:
image: "docker.arvancloud.ir/redis:latest"
container_name: redis-server
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
test_engine:
build:
context: ./src/test_engine
volumes:
- ./test_engine:/app
container_name: test-engine
depends_on:
redis:
condition: service_healthy
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: 5s
timeout: 3s
retries: 5