-
Notifications
You must be signed in to change notification settings - Fork 74
/
docker-compose-e2e.yml
130 lines (129 loc) · 3.28 KB
/
docker-compose-e2e.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Docker Compose file for mwdb-core end-to-end test suite
version: "3.3"
services:
mwdb:
build:
context: .
dockerfile: deploy/docker/Dockerfile
depends_on:
- postgres
- redis
image: certpl/mwdb
restart: on-failure
environment:
MWDB_ENABLE_KARTON: 1
MWDB_REDIS_URI: redis://redis/
MWDB_POSTGRES_URI: postgresql://mwdb:e2e-postgres-password@postgres/mwdb
# Hardcoded secret key for consistent JWT testing
MWDB_SECRET_KEY: e2e-testing-key
MWDB_ADMIN_LOGIN: admin
MWDB_ADMIN_EMAIL: admin@localhost
MWDB_ADMIN_PASSWORD: e2e-mwdb-admin-password
MWDB_BASE_URL: http://127.0.0.1
MWDB_ENABLE_RATE_LIMIT: 0
MWDB_ENABLE_REGISTRATION: 1
MWDB_MAIL_SMTP: "mailhog:1025"
MWDB_MAIL_FROM: "[email protected]"
volumes:
- "./dev/karton.ini:/etc/karton/karton.ini"
mwdb-web:
depends_on:
- mwdb
build:
context: .
dockerfile: deploy/docker/Dockerfile-web
image: certpl/mwdb-web
ports:
- "80:80"
restart: on-failure
postgres:
image: postgres
restart: always
container_name: mwdb_core_e2e_postgres
environment:
POSTGRES_USER: mwdb
POSTGRES_DB: mwdb
POSTGRES_PASSWORD: e2e-postgres-password
mwdb-tests:
build: tests/backend
container_name: mwdb_core_e2e_tests
depends_on:
- mwdb
- mwdb-web
- mailhog
- karton-system
- karton-classifier
- karton-dashboard
- karton-mwdb-reporter
image: certpl/mwdb-tests
environment:
MWDB_ADMIN_LOGIN: admin
MWDB_ADMIN_PASSWORD: e2e-mwdb-admin-password
MWDB_URL: http://mwdb-web./api
web-tests:
build: tests/frontend
container_name: mwdb_core_e2e_web_tests
depends_on:
- mwdb
- mwdb-web
- mailhog
- karton-system
- karton-classifier
- karton-dashboard
- karton-mwdb-reporter
image: certpl/mwdb-web-tests
environment:
MWDB_ADMIN_LOGIN: admin
MWDB_ADMIN_PASSWORD: e2e-mwdb-admin-password
redis:
image: redis:alpine
minio:
image: minio/minio
command: server /data
volumes:
- /tmp/minio:/data
ports:
- "127.0.0.1:9000:9000"
environment:
- MINIO_ROOT_USER=mwdb-test-access
- MINIO_ROOT_PASSWORD=mwdb-test-key
mailhog:
image: mailhog/mailhog:latest
ports:
- "127.0.0.1:8025:8025"
karton-system:
image: certpl/karton-system:v5.1.0
depends_on:
- redis
- minio
volumes:
- "./dev/karton.ini:/etc/karton/karton.ini"
entrypoint: karton-system
command: --setup-bucket
karton-classifier:
image: certpl/karton-classifier:v2.0.0
depends_on:
- redis
- minio
volumes:
- "./dev/karton.ini:/etc/karton/karton.ini"
karton-dashboard:
image: certpl/karton-dashboard:v1.5.0
depends_on:
- redis
- minio
volumes:
- "./dev/karton.ini:/etc/karton/karton.ini"
ports:
- "127.0.0.1:8030:5000"
karton-mwdb-reporter:
image: certpl/karton-mwdb-reporter:v1.3.0
depends_on:
- redis
- minio
volumes:
- "./dev/karton.ini:/etc/karton/karton.ini"
environment:
KARTON_MWDB_API_URL: http://mwdb-web.:80/api/
KARTON_MWDB_USERNAME: admin
KARTON_MWDB_PASSWORD: e2e-mwdb-admin-password