31 lines
868 B
YAML
31 lines
868 B
YAML
services:
|
|
db:
|
|
image: postgres:17.6-alpine
|
|
environment:
|
|
POSTGRES_USER: merchantflow
|
|
POSTGRES_PASSWORD: merchantflow_local
|
|
POSTGRES_DB: merchantflow
|
|
ports: ['127.0.0.1:55440:5432']
|
|
volumes: ['merchantflow_data:/var/lib/postgresql/data']
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U merchantflow -d merchantflow']
|
|
interval: 2s
|
|
timeout: 5s
|
|
retries: 20
|
|
db-test:
|
|
image: postgres:17.6-alpine
|
|
profiles: ['test']
|
|
environment:
|
|
POSTGRES_USER: merchantflow
|
|
POSTGRES_PASSWORD: merchantflow_local
|
|
POSTGRES_DB: merchantflow_test
|
|
ports: ['127.0.0.1:55441:5432']
|
|
tmpfs: ['/var/lib/postgresql/data']
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U merchantflow -d merchantflow_test']
|
|
interval: 2s
|
|
timeout: 5s
|
|
retries: 20
|
|
volumes:
|
|
merchantflow_data:
|