-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
64 lines (60 loc) · 1.44 KB
/
docker-compose.test.yml
File metadata and controls
64 lines (60 loc) · 1.44 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
services:
rabbitmq:
image: rabbitmq:3.13-management
environment:
RABBITMQ_DEFAULT_USER: llsp
RABBITMQ_DEFAULT_PASS: llsp
RABBITMQ_DEFAULT_VHOST: llspvhost
ports:
- "5672:5672"
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
interval: 5s
timeout: 5s
retries: 12
api:
build: ./LLSP-API
environment:
CELERY_BROKER_URL: amqp://llsp:llsp@rabbitmq:5672/llspvhost
CELERY_RESULT_BACKEND: rpc://
EXEC_TASK_NAME: celery_app.exec_script
LLSP_API_KEY: "secret-token"
depends_on:
rabbitmq:
condition: service_healthy
ports:
- "8000:8000"
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:8000/docs > /dev/null"]
interval: 5s
timeout: 5s
retries: 24
worker:
build: ./LLSP-Worker
environment:
RABBITMQ_USER: llsp
RABBITMQ_PASS: llsp
CELERY_BROKER_HOST: rabbitmq
CELERY_RESULT_BACKEND: rpc://
OUTPUT_DIR: /outputs
depends_on:
rabbitmq:
condition: service_healthy
volumes:
- outputs:/outputs
e2e-tests:
build:
context: .
dockerfile: tests/Dockerfile
environment:
API_BASE_URL: http://api:8000
LLSP_API_KEY: "secret-token"
depends_on:
api:
condition: service_healthy
worker:
condition: service_started
volumes:
- ./tests:/app/tests
volumes:
outputs: