-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
docker-compose.override.integration_tests.yml
71 lines (71 loc) · 2.88 KB
/
docker-compose.override.integration_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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
services:
integration-tests:
build:
context: ./
dockerfile: ${INTEGRATION_TESTS_DOCKERFILE:-Dockerfile.integration-tests-debian}
image: "defectdojo/defectdojo-integration-tests:${INTEGRATION_TESTS_VERSION:-latest}"
depends_on:
- nginx
- uwsgi
entrypoint: ['/wait-for-it.sh', '${DD_DATABASE_HOST:-postgres}:${DD_DATABASE_PORT:-5432}', '-t', '30', '--', '/app/docker/entrypoint-integration-tests.sh']
volumes:
- '.:/app:z'
- "defectdojo_media_integration_tests:${DD_MEDIA_ROOT:-/app/media}"
environment:
PYTHONWARNINGS: error # We are strict about Warnings during testing
DD_BASE_URL: 'http://nginx:8080/'
DD_SECURE_CROSS_ORIGIN_OPENER_POLICY: 'None'
DD_ADMIN_USER: "${DD_ADMIN_USER:-admin}"
DD_ADMIN_PASSWORD: "${DD_ADMIN_PASSWORD:-AdminsLoveIntegrationtests!}"
DD_INTEGRATION_TEST_FILENAME: "${DD_INTEGRATION_TEST_FILENAME}"
nginx:
volumes:
- defectdojo_media_integration_tests:/usr/share/nginx/html/media
uwsgi:
entrypoint: ['/wait-for-it.sh', '${DD_DATABASE_HOST:-postgres}:${DD_DATABASE_PORT:-5432}', '-t', '30', '--', '/entrypoint-uwsgi-dev.sh']
volumes:
- '.:/app:z'
- defectdojo_media_integration_tests:${DD_MEDIA_ROOT:-/app/media}
environment:
PYTHONWARNINGS: error # We are strict about Warnings during testing
DD_DEBUG: 'True'
DD_DATABASE_URL: ${DD_TEST_DATABASE_URL:-postgresql://defectdojo:defectdojo@postgres:5432/test_defectdojo}
DD_SECURE_CROSS_ORIGIN_OPENER_POLICY: 'None'
DD_SECRET_KEY: "${DD_SECRET_KEY:-.}"
DD_EMAIL_URL: "smtp://mailhog:1025"
celerybeat:
environment:
DD_DATABASE_URL: ${DD_TEST_DATABASE_URL:-postgresql://defectdojo:defectdojo@postgres:5432/test_defectdojo}
celeryworker:
environment:
DD_DATABASE_URL: ${DD_TEST_DATABASE_URL:-postgresql://defectdojo:defectdojo@postgres:5432/test_defectdojo}
initializer:
environment:
PYTHONWARNINGS: error # We are strict about Warnings during testing
DD_INITIALIZE: 'true'
DD_DATABASE_URL: ${DD_TEST_DATABASE_URL:-postgresql://defectdojo:defectdojo@postgres:5432/test_defectdojo}
DD_ADMIN_PASSWORD: "${DD_ADMIN_PASSWORD:-AdminsLoveIntegrationtests!}"
DD_SECRET_KEY: "${DD_SECRET_KEY:-.}"
volumes:
- '.:/app:z'
postgres:
ports:
- target: ${DD_DATABASE_PORT:-5432}
published: ${DD_DATABASE_PORT:-5432}
protocol: tcp
mode: host
environment:
POSTGRES_DB: ${DD_TEST_DATABASE_NAME:-test_defectdojo}
volumes:
- defectdojo_postgres_integration_tests:/var/lib/postgresql/data
mailhog:
image: mailhog/mailhog:v1.0.1@sha256:8d76a3d4ffa32a3661311944007a415332c4bb855657f4f6c57996405c009bea
ports:
- target: 1025
published: 1025
protocol: tcp
mode: host
volumes:
defectdojo_postgres_integration_tests: {}
defectdojo_media_integration_tests: {}