forked from MaibornWolff/SecObserve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-playwright.yml
74 lines (70 loc) · 2.05 KB
/
docker-compose-playwright.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
72
73
74
networks:
secobserve:
services:
frontend:
build:
context: .
dockerfile: ./docker/frontend/prod/Dockerfile
image: secobserve_frontend_playwright
depends_on:
- backend
ports:
- "3000:3000"
environment:
API_BASE_URL: http://backend:5000/api
OIDC_ENABLE: false
OIDC_AUTHORITY: dummy
OIDC_CLIENT_ID: dummy
OIDC_REDIRECT_URI: dummy
OIDC_POST_LOGOUT_REDIRECT_URI: dummy
networks:
- secobserve
backend:
build:
context: .
dockerfile: ./docker/backend/prod/django/Dockerfile
image: secobserve_backend_playwright
environment:
SO_END_TO_END_TESTS: true
# --- Admin user ---
ADMIN_USER: admin-user
ADMIN_PASSWORD: admin-password
ADMIN_EMAIL: [email protected]
# --- Gunicorn ---
GUNICORN_WORKERS: 3
GUNICORN_THREADS: 10
# --- Database ---
DATABASE_ENGINE: django.db.backends.sqlite3
# --- Security ---
ALLOWED_HOSTS: backend
CORS_ALLOWED_ORIGINS: http://frontend:3000
DJANGO_SECRET_KEY: NxYPEF5lNGgk3yonndjSbwP77uNJxOvfKTjF5aVBqsHktNlf1wfJHHvJ8iifk32r
FIELD_ENCRYPTION_KEY: DtlkqVb3wlaVdJK_BU-3mB4wwuuf8xx8YNInajiJ7GU=
# --- OpenID Connect ---
OIDC_AUTHORITY: ${SO_OIDC_AUTHORITY:-}
OIDC_CLIENT_ID: ${SO_OIDC_CLIENT_ID:-}
OIDC_USERNAME: ${SO_OIDC_USERNAME:-}
OIDC_FIRST_NAME: ${SO_OIDC_FIRST_NAME:-}
OIDC_LAST_NAME: ${SO_OIDC_LAST_NAME:-}
OIDC_FULL_NAME: ${SO_OIDC_FULL_NAME:-}
OIDC_EMAIL: ${SO_OIDC_EMAIL:-}
OIDC_GROUPS: ${SO_OIDC_GROUPS:-}
ports:
- "5000:5000"
networks:
- secobserve
playwright:
image: mcr.microsoft.com/playwright:v1.49.0
depends_on:
- frontend
environment:
- SO_PW_DOCKER=true
- SO_PW_FRONTEND_BASE_URL=http://frontend:3000
- SO_PW_USERNAME=admin-user
- SO_PW_PASSWORD=admin-password
working_dir: /end_to_end_tests
volumes:
- ./end_to_end_tests:/end_to_end_tests
entrypoint: ["npx", "playwright", "test"]
networks:
- secobserve