-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
30 lines (30 loc) · 851 Bytes
/
Copy pathcompose.yaml
File metadata and controls
30 lines (30 loc) · 851 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
services:
postgres:
image: postgres:17.11-alpine
environment:
POSTGRES_USER: pgstencil
POSTGRES_PASSWORD: pgstencil-local-only
POSTGRES_DB: postgres
command: [postgres, -c, max_connections=200]
volumes: [postgres-data:/var/lib/postgresql/data]
ports: ['127.0.0.1::5432']
healthcheck:
test: [CMD-SHELL, 'pg_isready -U pgstencil -d postgres']
interval: 1s
timeout: 3s
retries: 60
integresql:
image: ghcr.io/allaboutapps/integresql:v1.1.0
environment:
PGHOST: postgres
PGUSER: pgstencil
PGPASSWORD: pgstencil-local-only
PGDATABASE: postgres
INTEGRESQL_TEST_INITIAL_POOL_SIZE: '2'
INTEGRESQL_TEST_MAX_POOL_SIZE: '40'
depends_on:
postgres:
condition: service_healthy
ports: ['127.0.0.1::5000']
volumes:
postgres-data: