-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.cypress_local.yml
82 lines (82 loc) · 2.03 KB
/
docker-compose.cypress_local.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
---
version: '3.7'
services:
db:
ports:
- 5432:5432
db_migrate:
build:
context: .
dockerfile: Dockerfile.db_migrations
volumes:
- ./migrations:/flyway/sql
db_seed:
build:
context: .
dockerfile: Dockerfile.db_seed
environment:
- PGHOST=db
- PGPORT=5432
- PGDATABASE=postgres
- PGUSER=postgres
- PGPASS=mysecretpassword
- PGSSLMODE=disable
- DB_MAX_CONNECTIONS=20
easi:
build:
context: .
dockerfile: Dockerfile
image: easi-backend:latest
environment:
- APP_ENV=test
- EMAIL_TEMPLATE_DIR=/easi/templates
- FLAG_SOURCE=FILE
- FLAGDATA_FILE=/cypress/fixtures/flagdata.json
- LOCAL_AUTH_ENABLED=true
ports:
- 8080:8080
volumes:
- ./cypress:/cypress # Mounted so that the backend container can access the file with LaunchDarkly flag values
easi_client:
build:
context: .
dockerfile: Dockerfile.client
args:
- VITE_APP_ENV=test
- VITE_API_ADDRESS=http://easi:8080/api/v1
- VITE_OKTA_CLIENT_ID
- VITE_OKTA_DOMAIN
- VITE_OKTA_ISSUER
- VITE_OKTA_REDIRECT_URI
- VITE_OKTA_SERVER_ID
- VITE_LOCAL_AUTH_ENABLED=true
environment:
- CI=true #https://github.com/facebook/create-react-app/issues/8688
entrypoint: ['serve', '-s', '-l', '3000']
ports:
- 3000:3000
cypress:
build:
context: .
dockerfile: Dockerfile.cypress
image: easi-cypress:latest
environment:
- OKTA_TEST_USERNAME
- OKTA_TEST_PASSWORD
- OKTA_TEST_SECRET
- VITE_API_ADDRESS=http://easi:8080/api/v1
- MINIO_ACCESS_KEY
- MINIO_SECRET_KEY
- PGHOST=db
- PGPORT=5432
- PGDATABASE=postgres
- PGUSER=postgres
- PGPASS=mysecretpassword
- PGSSLMODE=disable
- DB_MAX_CONNECTIONS=20
network_mode: 'service:easi_client'
volumes:
- ./cypress:/cypress
- ./minio_config.json:/root/.mc/config.json
depends_on:
- easi_client