compose.yaml 495 B

1234567891011121314151617181920
  1. services:
  2. postgres:
  3. image: postgres:16-alpine
  4. environment:
  5. POSTGRES_DB: saas_voc
  6. POSTGRES_USER: saas_voc_owner
  7. POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in the shell}
  8. ports:
  9. - "127.0.0.1:54329:5432"
  10. healthcheck:
  11. test: ["CMD-SHELL", "pg_isready -U saas_voc_owner -d saas_voc"]
  12. interval: 5s
  13. timeout: 3s
  14. retries: 10
  15. volumes:
  16. - saas_voc_postgres:/var/lib/postgresql/data
  17. volumes:
  18. saas_voc_postgres: