-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.integration.yml
More file actions
32 lines (30 loc) · 896 Bytes
/
Copy pathcompose.integration.yml
File metadata and controls
32 lines (30 loc) · 896 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
services:
postgres:
image: postgres:${POSTGRES_VERSION:-18}
environment:
POSTGRES_DB: postgres
POSTGRES_USER: test_user
POSTGRES_PASSWORD: test_password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U test_user -d postgres"]
interval: 2s
timeout: 5s
retries: 15
integration-tests:
build:
context: .
dockerfile: docker/integration/Dockerfile
args:
POSTGRES_VERSION: ${POSTGRES_VERSION:-18}
depends_on:
postgres:
condition: service_healthy
environment:
POSTGRES_VERSION: ${POSTGRES_VERSION:-18}
DB_HOST: postgres
DB_PORT: 5432
DB_USER: test_user
DB_PASSWORD: test_password
PG_DUMP_PATH: /usr/lib/postgresql/${POSTGRES_VERSION:-18}/bin/pg_dump
PG_RESTORE_PATH: /usr/lib/postgresql/${POSTGRES_VERSION:-18}/bin/pg_restore
PGSSLMODE: disable