-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
75 lines (66 loc) · 1.87 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
x-logging: &logging
logging:
driver: "json-file"
options:
max-size: "256m"
x-restart-policy: &restart
restart: unless-stopped
x-labels: &labels
labels:
org.jdi-qasp-ml.project: "jdi-qasp-ml"
org.jdi-qasp-ml.version_label: "${JDI_VERSION_LABEL:-latest}"
services:
selenoid:
image: "aerokube/selenoid:latest"
volumes:
- ".:/etc/selenoid"
- "./target:/output"
- "/var/run/docker.sock:/var/run/docker.sock"
- "./target:/opt/selenoid/video"
environment:
- "OVERRIDE_VIDEO_OUTPUT_DIR=$PWD/target"
command:
- "-conf"
- "/etc/selenoid/browsers.json"
- "-video-output-dir"
- "/opt/selenoid/video"
- "-container-network"
- "${JDI_DEFAULT_NETWORK_NAME:-jdi-qasp-ml-default}"
- "-limit"
- "${SELENOID_PARALLEL_SESSIONS_COUNT:?set it to the number of parallel running threads supported by your processor (-2 optionally)}"
<<: [*restart, *labels]
api:
image: "ghcr.io/jdi-testing/jdi-qasp-ml:latest"
command: uvicorn app.main:api --host 0.0.0.0 --port 5050
depends_on:
- selenoid
- celery
- redis
- mongodb
ports:
- "${APP_EXPOSE_PORT:-5050}:5050"
environment:
- SELENOID_PARALLEL_SESSIONS_COUNT=$SELENOID_PARALLEL_SESSIONS_COUNT
<<: [*logging, *restart, *labels]
celery:
image: "ghcr.io/jdi-testing/jdi-qasp-ml:latest"
command: bash -c "bash start_celery.sh"
depends_on:
- redis
<<: [*logging, *restart, *labels]
redis:
image: "redis:alpine"
command: redis-server --maxmemory 2048mb --maxmemory-policy allkeys-lru
<<: [*logging, *restart, *labels]
mongodb:
image: mongo:5.0
volumes:
- mongo-data:/data/db
<<: [*logging, *restart, *labels]
networks:
default:
name: ${JDI_DEFAULT_NETWORK_NAME:-jdi-qasp-ml-default}
<<: *labels
volumes:
mongo-data:
<<: *labels