-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
40 lines (37 loc) · 878 Bytes
/
docker-compose.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
version: '3.8'
# trigger
services:
app:
container_name: graphql-registry
build: .
ports:
- '3001:3000'
restart: unless-stopped
environment:
DATABASE_URL: postgresql://postgres:changeme@postgres:5432/graphql-registry?schema=public
postgres:
container_name: postgres
image: postgres
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
PGDATA: /data/postgres
ports:
- '5440:5432'
restart: unless-stopped
k6:
container_name: k6
image: loadimpact/k6:latest
environment:
URL: http://graphql-registry:3000
depends_on:
- app
volumes:
- ./benchmark:/benchmark
profiles:
- test