-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.e2e.yml
55 lines (48 loc) · 1.3 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
49
50
51
52
53
54
55
version: "1.1"
services:
backend:
build: ./backend
healthcheck:
test: 'curl --fail --request POST --header ''content-type: application/json'' --url ''http://localhost:4000'' --data ''{"query":"query { __typename }"}'' || exit 1'
retries: 10
depends_on:
db:
condition: service_healthy
frontend:
build: ./frontend
env_file: .env.test
healthcheck:
test: "curl --fail --request GET --header 'content-type: application/json' --url 'http://localhost:3000/api/healthcheck' || exit 1"
retries: 10
depends_on:
backend:
condition: service_healthy
e2e:
build: ./e2e
volumes:
- ./e2e/playwright-report:/app/playwright-report
- ./e2e/test-results:/app/test-results
depends_on:
frontend:
condition: service_healthy
imagesupload:
build: ./imagesupload
# volumes:
# - ./imagesupload/uploads:/app/uploads
adminer:
image: adminer
db:
image: postgres
environment:
POSTGRES_PASSWORD: wildrent
healthcheck:
test: ["CMD-SHELL", "pg_isready -d postgres -U postgres"]
retries: 10
# volumes:
# - pgdata_new1:/var/lib/postgresql/data
redis:
image: redis
redis-commander:
image: rediscommander/redis-commander
environment:
- REDIS_HOSTS=redis