forked from DefectDojo/django-DefectDojo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.unit_tests.yml
37 lines (37 loc) · 1.09 KB
/
docker-compose.override.unit_tests.yml
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
---
version: '3.7'
services:
nginx:
build:
context: ./
dockerfile: Dockerfile.busybox
image: defectdojo/defectdojo-busybox:${NGINX_VERSION:-latest}
uwsgi:
entrypoint: ['/wait-for-it.sh', 'mysql:3306', '-t', '30', '--', '/entrypoint-unit-tests-devDocker.sh']
volumes:
- '.:/app:z'
environment:
DD_DEBUG: 'True'
DD_TEST_DATABASE_NAME: ${DD_TEST_DATABASE_NAME:-test_defectdojo}
DD_DATABASE_NAME: ${DD_TEST_DATABASE_NAME:-test_defectdojo}
celerybeat:
environment:
DD_DATABASE_URL: ${DD_TEST_DATABASE_URL:-mysql://defectdojo:defectdojo@mysql:3306/test_defectdojo}
celeryworker:
environment:
DD_DATABASE_URL: ${DD_TEST_DATABASE_URL:-mysql://defectdojo:defectdojo@mysql:3306/test_defectdojo}
initializer:
environment:
DD_INITIALIZE: 'false'
mysql:
ports:
- target: 3306
published: 3306
protocol: tcp
mode: host
environment:
MYSQL_DATABASE: ${DD_TEST_DATABASE_NAME:-test_defectdojo}
volumes:
- defectdojo_data_unittest:/var/lib/mysql
volumes:
defectdojo_data_unittest: {}