forked from DefectDojo/django-DefectDojo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.unit_tests.yml
51 lines (51 loc) · 1.58 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
version: '3.7'
services:
nginx:
image: busybox:1.35.0-musl
entrypoint: ['echo', 'skipping', 'nginx']
volumes:
- defectdojo_media_unittest:/usr/share/nginx/html/media
uwsgi:
build:
target: django-unittests
entrypoint: ['/wait-for-it.sh', 'mysql:3306', '-t', '30', '--', '/app/docker/entrypoint-unit-tests-devDocker.sh']
volumes:
- '.:/app:z'
- "defectdojo_media_unittest:${DD_MEDIA_ROOT:-/app/media}"
environment:
DD_DEBUG: 'True'
DD_TEST_DATABASE_NAME: "${DD_TEST_DATABASE_NAME:-test_defectdojo}"
DD_DATABASE_NAME: "${DD_TEST_DATABASE_NAME:-test_defectdojo}"
DD_CELERY_BROKER_SCHEME: 'sqla+sqlite'
DD_CELERY_BROKER_USER: ''
DD_CELERY_BROKER_PASSWORD: ''
DD_CELERY_BROKER_HOST: ''
DD_CELERY_BROKER_PORT: "-1"
DD_CELERY_BROKER_PATH: '/dojo.celerydb.sqlite'
DD_CELERY_BROKER_PARAMS: ''
celerybeat:
image: busybox:1.35.0-musl
entrypoint: ['echo', 'skipping', 'celery beat']
celeryworker:
image: busybox:1.35.0-musl
entrypoint: ['echo', 'skipping', 'celery worker']
initializer:
image: busybox:1.35.0-musl
entrypoint: ['echo', 'skipping', 'initializer']
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
rabbitmq:
image: busybox:1.35.0-musl
entrypoint: ['echo', 'skipping', 'rabbitmq']
volumes:
defectdojo_data_unittest: {}
defectdojo_media_unittest: {}