Advertisement
Guest User

Untitled

a guest
Jun 11th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. version: '2.1'
  2. services:
  3. postgres:
  4. image: shanelee007/docker-pact-postgres
  5. environment:
  6. - POSTGRES_PASSWORD=ThePostgresPassword
  7. - POSTGRES_USER=admin
  8. ports:
  9. - "5433:5432"
  10. healthcheck:
  11. test: ["CMD-SHELL", "psql -h 'localhost' -U 'admin' -c '\\l'"]
  12. interval: 30s
  13. timeout: 30s
  14. retries: 3
  15. pact:
  16. image: dius/pact-broker:latest
  17. environment:
  18. - PACT_BROKER_DATABASE_NAME=pactbroker
  19. - PACT_BROKER_DATABASE_PASSWORD=TheUserPassword
  20. - PACT_BROKER_DATABASE_HOST=postgres
  21. - PACT_BROKER_DATABASE_USERNAME=pactbrokeruser
  22. - PACT_BROKER_BASIC_AUTH_USERNAME=shanelee007
  23. - PACT_BROKER_BASIC_AUTH_PASSWORD=password123
  24. ports:
  25. - "80:80"
  26. depends_on:
  27. postgres:
  28. condition: service_healthy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement