-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathdocker-compose.e2e-test.yaml
More file actions
48 lines (44 loc) · 1002 Bytes
/
docker-compose.e2e-test.yaml
File metadata and controls
48 lines (44 loc) · 1002 Bytes
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.2'
networks:
e2e-test-net:
services:
e2e_service:
build:
context: .
dockerfile: ./Dockerfile
environment:
- DB_CONNECTION=postgresql://postgres:password@db:5432/banking?sslmode=disable
volumes:
- $PWD:/go/src
depends_on:
db:
condition: service_healthy
networks:
- e2e-test-net
e2e_test:
image: postman/newman:5.3-alpine
volumes:
- ./postman:/postman
command:
run /postman/workshop.postman_collection.json
-e /postman/workshop-e2e.postman_environment.json
depends_on:
- e2e_service
networks:
- e2e-test-net
db:
image: postgres:12.12
user: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: banking
volumes:
- ./db:/docker-entrypoint-initdb.d/
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
networks:
- e2e-test-net