Created
          December 23, 2022 13:02 
        
      - 
      
 - 
        
Save dnno/8f34bb3ce041c3b779f5fa15869a8b9d to your computer and use it in GitHub Desktop.  
    Pact Broker Dockercompose file
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | version: "3" | |
| services: | |
| postgres: | |
| image: postgres | |
| healthcheck: | |
| test: psql postgres --command "select 1" -U postgres | |
| volumes: | |
| - postgres-volume:/var/lib/postgresql/data | |
| environment: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: password | |
| POSTGRES_DB: postgres | |
| pact-broker: | |
| image: pactfoundation/pact-broker:latest | |
| ports: | |
| - "9292:9292" | |
| depends_on: | |
| - postgres | |
| environment: | |
| PACT_BROKER_PORT: '9292' | |
| PACT_BROKER_DATABASE_URL: "postgres://postgres:password@postgres/postgres" | |
| PACT_BROKER_LOG_LEVEL: INFO | |
| PACT_BROKER_SQL_LOG_LEVEL: DEBUG | |
| PACT_BROKER_DATABASE_CONNECT_MAX_RETRIES: "5" | |
| PACT_BROKER_BASE_URL: 'https://localhost http://localhost http://localhost:9292 http://pact-broker:9292 https://host.docker.internal http://host.docker.internal http://host.docker.internal:9292' | |
| volumes: | |
| postgres-volume: | |
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment