-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.e2e.yaml
More file actions
50 lines (46 loc) · 1.32 KB
/
Copy pathcompose.e2e.yaml
File metadata and controls
50 lines (46 loc) · 1.32 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
services:
db:
ports: !reset []
backend:
ports: !reset []
environment:
FRONTEND_ORIGIN: http://frontend:5173
SEED_SUPERADMIN_EMAIL: superadmin.e2e@example.test
SEED_SUPERADMIN_PASSWORD: superadmin e2e test password
frontend:
ports: !reset []
environment:
VITE_API_BASE_URL: http://backend:5000/api
__VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS: frontend
e2e-setup:
build:
context: .
dockerfile: backend/Dockerfile
environment:
FLASK_APP: backend.app:create_app
SECRET_KEY: development-only-change-me
JWT_SECRET_KEY: development-only-change-me
FRONTEND_ORIGIN: http://frontend:5173
DATABASE_URL: postgresql+psycopg://cms:cms@db:5432/cms
SEED_SUPERADMIN_EMAIL: superadmin.e2e@example.test
SEED_SUPERADMIN_PASSWORD: superadmin e2e test password
MEDIA_STORAGE_ROOT: /var/lib/cms/media
volumes:
- .:/app
- media_uploads:/var/lib/cms/media
depends_on:
backend:
condition: service_healthy
command: >-
sh -c "flask db upgrade && flask seed && python -m e2e.setup"
e2e:
build:
context: .
dockerfile: e2e/Dockerfile
environment:
CI: "1"
depends_on:
frontend:
condition: service_healthy
e2e-setup:
condition: service_completed_successfully