forked from resource-watch/resource-watch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-test.yml
53 lines (50 loc) · 1.16 KB
/
docker-compose-test.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
version: "3"
services:
backend-test:
build: .
command: test-backend
environment:
LOGGER_LEVEL: info
NODE_ENV: test
PORT: 3001
REDIS_URL: redis://redis:6379
SECRET: keyboard cat
restart: always
container_name: resource-watch-backend-test
depends_on:
- redis
frontend-test-server:
build: .
command: start
environment:
LOGGER_LEVEL: info
NODE_ENV: test
REDIS_URL: redis://redis:6379
expose:
- 3000
restart: always
container_name: resource-watch-frontend-server
depends_on:
- redis
cypress:
build:
dockerfile: Dockerfile.cypress
context: .
working_dir: /e2e
volumes:
- ./cypress:/e2e/cypress
- ./cypress.json:/e2e/cypress.json
- ./.nyc_output:/e2e/.nyc_output
- ./coverage:/e2e/coverage
- ./config:/e2e/config
- ./.env.test:/e2e/.env.test
environment:
NODE_ENV: test
CYPRESS_baseUrl: http://frontend-test-server:3000
WAIT_HOSTS: frontend-test-server:3000
WAIT_HOSTS_TIMEOUT: 120
WAIT_SLEEP_INTERVAL: 3
depends_on:
- frontend-test-server
redis:
image: redis