-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.e2e.yml
48 lines (48 loc) · 1.16 KB
/
docker-compose.e2e.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
version: '3.8'
services:
redis:
image: redis
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
command: redis-server --requirepass ${REDIS_PASSWORD}
volumes:
- redis:/data
healthcheck:
test: [ "CMD-SHELL", "redis-cli -a ${REDIS_PASSWORD} ping | grep PONG" ]
interval: 1s
timeout: 3s
retries: 5
kotka-api:
depends_on:
redis:
condition: service_healthy
env_file:
- .env.e2e
build:
context: ./
dockerfile: ./tools/docker/kotka/dev/kotka-api/Dockerfile
volumes:
- .:/app
- shared-volume:/app/node_modules
healthcheck:
test: [ "CMD-SHELL", "curl --silent --fail localhost:3333/api/status || exit 1" ]
start_period: 30s
interval: 10s
timeout: 10s
retries: 7
kotka-e2e:
depends_on:
kotka-api:
condition: service_healthy
build:
context: ./
dockerfile: ./tools/docker/kotka-e2e/Dockerfile
volumes:
- .:/app
- shared-volume:/app/node_modules
environment:
- CYPRESS_TEST_EMAIL=${CYPRESS_TEST_EMAIL}
- CYPRESS_TEST_PASSWORD=${CYPRESS_TEST_PASSWORD}
volumes:
shared-volume:
redis: