-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.e2e.yml
More file actions
40 lines (40 loc) · 1.04 KB
/
docker-compose.e2e.yml
File metadata and controls
40 lines (40 loc) · 1.04 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
version: '3.2'
services:
db-test:
image: postgres
restart: always
ports:
- '54321:5432'
environment:
POSTGRES_DB: db
POSTGRES_USER: user
POSTGRES_PASSWORD: pwd
app:
build:
context: .
args:
database_url: postgresql://user:pwd@db-test:5432/db
entrypoint: /e2e/scripts/wait_for_it.sh db-test:5432 -- npm run start:full
environment:
- PORT=8080
- DATABASE_URL=postgresql://user:pwd@db-test:5432/db
- CLIENT_SECRET=some_strang3_s3cr3t
ports:
- 8080:8080
volumes:
# share everything BUT node_modules from the host
- .:/backend
- /backend/node_modules
- .:/frontend
- /frontend/node_modules
- ./tests-e2e:/e2e
depends_on:
- db-test
cypress:
image: 'cypress/included:3.2.0'
entrypoint: /e2e/scripts/wait_for_it.sh app:8080 -- cypress run --record --key 5619557e-5109-4f0c-8043-d9565867395b
environment:
- CYPRESS_baseUrl=http://app:8080
working_dir: /e2e
volumes:
- ./tests-e2e:/e2e