Files
myrag/docker-compose.yml

24 lines
479 B
YAML

version: '3.8'
services:
postgres_ext:
build:
context: .
restart: always
ports:
- 55455:5432
environment:
POSTGRES_PASSWORD: mipassword
POSTGRES_USER: postgres
POSTGRES_DB: basededatos
healthcheck:
test:
- CMD-SHELL
- pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: {}