docker-compose.yml 401 B

12345678910111213141516171819
  1. services:
  2. postgres:
  3. image: postgres:15
  4. ports:
  5. - "5432:5432"
  6. environment:
  7. POSTGRES_USER: username
  8. POSTGRES_PASSWORD: password
  9. POSTGRES_DB: workout_cool
  10. volumes:
  11. - pgdata:/var/lib/postgresql/data
  12. healthcheck:
  13. test: ["CMD-SHELL", "pg_isready -U username -d workout_cool"]
  14. interval: 5s
  15. timeout: 5s
  16. retries: 5
  17. volumes:
  18. pgdata: