-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.e2e.yml
More file actions
55 lines (45 loc) · 1.17 KB
/
Copy pathdocker-compose.e2e.yml
File metadata and controls
55 lines (45 loc) · 1.17 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
services:
# exposing ports is needed for integration and e2e tests to run
dex:
ports:
- 8090:8090
- 5557:5557
volumes:
- ./docker/dex/config-e2e.yaml:/etc/dex/config.yaml:ro
api:
ports:
- 8080:8080
environment:
APP_POSTGRES_URL: postgres://postgres:postgres@postgres:5432/test
APP_REDIS_URL: redis://redis:6379/1
# Used when running e2e tests inside the API container (locally)
# CI needs them in the quality-api.yml workflow
APIE2E_API_URL: https://api.covoiturage.test
volumes:
- ./docker/api/certs:/app/certs:ro
- ./api:/app/api
postgres:
ports:
- ${POSTGRES_PORT:-5432}:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test
redis:
ports:
- 6379:6379
mailer:
ports:
- 1025:1025
s3:
ports:
- 9000:9000
wait:
image: busybox:1.33
environment:
DOMAIN: ${WAIT_DOMAIN:-api}
PORT: ${WAIT_PORT:-8080}
working_dir: /app/api
command: ['/bin/sh', '-c', 'until nc -zv $$DOMAIN $$PORT -w1; do echo " Waiting for $$DOMAIN..."; sleep 1; done']
networks:
- back