-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
60 lines (55 loc) · 1.19 KB
/
docker-compose.test.yml
File metadata and controls
60 lines (55 loc) · 1.19 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
services:
web-service:
build:
context: .
dockerfile: web_service/Dockerfile
ports:
- 5001:5001
environment:
- FLASK_ENV=testing
volumes:
- scans_test:/mnt/scans
- data_test:/app/data
- preview_images_test:/app/src/static/images/pdfpreview
networks:
- test-network
# depends_on:
# - rabbitmq
# rabbitmq:
# image: rabbitmq:4.0.7-management
# ports:
# - "5673:5672"
# - "15673:15672"
# networks:
# - test-network
test_service:
build:
context: .
dockerfile: test_service/Dockerfile
depends_on:
- web-service
- redis
networks:
- test-network
volumes:
- scans_test:/mnt/scans
- data_test:/app/data
- preview_images_test:/app/preview-images
- ./detection_service:/tests/tests/detection_service
- ./web_service:/tests/tests/web_service
redis:
image: redis:latest
restart: unless-stopped
container_name: redis_test
ports:
- "6380:6379"
networks:
- test-network
environment:
- REDIS_URL=redis://redis:6379
volumes:
scans_test:
data_test:
preview_images_test:
networks:
test-network: