generated from KTH/node-web
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-integration-tests.yml
47 lines (45 loc) · 1.25 KB
/
docker-compose-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
version: '3.7'
services:
redis:
image: redis:6.2.3
ports:
- '6379'
mock-api:
build: ./test/mock-api
ports:
- '3001'
web:
image: $LOCAL_IMAGE_ID
environment:
NODE_ENV: 'development'
API_KEYS: '?name=devClient&apiKey=1234&scope=write&scope=read'
SESSION_USE_REDIS: 'false'
SERVICE_PUBLISH: '/kursinfoadmin/kurs-pm-data'
SERVER_PORT: '3000'
SESSION_SECRET: '1234'
SESSION_KEY: 'kurs-pm-data-admin-web.pid'
LOGGING_LEVEL: 'error'
LOG_LEVEL: 'error'
LOGGING_ACCESS_LOG: 'false'
KURS_PM_DATA_API_URI: 'http://mock-api:3001/kurs-pm'
KURS_PM_DATA_API_KEY: 'secretpassword'
KURSPLAN_API_URI: 'http://mock-api:3001/kursplan'
KURSPLAN_API_KEY: 'secretpassword'
REDIS_URI: 'redis://redis:6379/'
UG_REDIS_URI: 'redis://redis:6379/'
KOPPS_URI: 'http://mock-api:3001/kopps/'
CM_HOST_URL: 'http://mock-api:3001/cm/'
OIDC_APPLICATION_ID: 'oidcid'
OIDC_CLIENT_SECRET: 'oidcsecret'
OIDC_TOKEN_SECRET: 'oidctoken'
ports:
- '3000'
depends_on:
- redis
- mock-api
cypress:
build: ./test/e2e
environment:
- CYPRESS_baseUrl=http://web:3000/kursinfoadmin/kurs-pm-data/
depends_on:
- web