Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. version: '3.7'
  2.  
  3. networks:
  4. br0:
  5.  
  6. volumes:
  7. db-data:
  8.  
  9. services:
  10. db:
  11. image: postgres:11
  12. restart: unless-stopped
  13. networks:
  14. br0:
  15. aliases:
  16. - db
  17. ports:
  18. - "6101:5432"
  19. volumes:
  20. - db-data:/var/lib/postgresql/data
  21. environment:
  22. - POSTGRES_USER=postgres
  23. - POSTGRES_PASSWORD=test123
  24. healthcheck:
  25. test: ["CMD-SHELL", "pg_isready -U postgres"]
  26. interval: 10s
  27. timeout: 5s
  28. retries: 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement