components-contrib/.github/infrastructure/docker-compose-postgresql.yml

25 lines
561 B
YAML

version: '2'
services:
db:
image: postgres:15-alpine
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: example
POSTGRES_DB: dapr_test
# Uncomment for local development
#pgadmin:
# image: dpage/pgadmin4
# restart: always
# ports:
# - "9001:9001"
# depends_on:
# - db
# environment:
# - "PGADMIN_LISTEN_PORT=9001"
# - "PGADMIN_DEFAULT_EMAIL=admin@local.dev"
# - "PGADMIN_DEFAULT_PASSWORD=example"
# - "PGADMIN_DISABLE_POSTFIX=1"