forked from sarboc/easi-app-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.cypress_local.yml
More file actions
56 lines (56 loc) · 1.37 KB
/
docker-compose.cypress_local.yml
File metadata and controls
56 lines (56 loc) · 1.37 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
51
52
53
54
55
56
---
version: '3.7'
services:
db:
ports:
- 5432:5432
db_migrate:
build:
context: .
dockerfile: Dockerfile.db_migrations
volumes:
- ./migrations:/flyway/sql
easi:
build:
context: .
dockerfile: Dockerfile
image: easi-backend:latest
environment:
- APP_ENV=test
- EMAIL_TEMPLATE_DIR=/easi/templates
ports:
- 8080:8080
entrypoint: ['/easi/easi', 'serve']
easi_client:
build:
context: .
dockerfile: Dockerfile.client
args:
- REACT_APP_APP_ENV=test
- REACT_APP_API_ADDRESS=http://easi:8080/api/v1
- REACT_APP_GRAPHQL_ADDRESS=http://easi:8080/api/graph/query
- REACT_APP_OKTA_CLIENT_ID
- REACT_APP_OKTA_DOMAIN
- REACT_APP_OKTA_ISSUER
- REACT_APP_OKTA_REDIRECT_URI
- REACT_APP_OKTA_SERVER_ID
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
- REACT_APP_API_ADDRESS=http://easi:8080/api/v1
network_mode: 'service:easi_client'
volumes:
- ./cypress:/cypress
depends_on:
- easi_client