Files
cotizador/docker-compose.yml
T

23 lines
572 B
YAML

services:
postgres:
image: postgres:16-alpine
container_name: cotizador-uj-db
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
# Se conserva el nombre físico de BD para no romper el volumen postgres_data.
POSTGRES_DB: cotizador_e3
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d cotizador_e3"]
interval: 5s
timeout: 5s
retries: 20
volumes:
postgres_data: