<commit_before>version: '3'

services:
  postgres:
    image: postgres:9.6
    environment:
      - POSTGRES_PASSWORD=<PASSWORD>
      - POSTGRES_USER=puppetdb
      - POSTGRES_DB=puppetdb
    expose:
      - 5432
    volumes:
      - ./puppetdb/postgres-custom:/docker-entrypoint-initdb.d
      - ${VOLUME_ROOT:-.}/pgdata:/var/lib/postgresql/data

  puppetdb:
    image: ${PUPPET_TEST_DOCKER_IMAGE:-puppet/puppetdb}
    environment:
      - PUPPERWARE_ANALYTICS_ENABLED=${PUPPERWARE_ANALYTICS_ENABLED:-false}
      - PUPPETDB_PASSWORD=<PASSWORD>
      - PUPPETDB_USER=puppetdb
      - USE_PUPPETSERVER=false
    ports:
      - 8080
      - 8081
    depends_on:
      - postgres<commit_msg>(maint) Use explicit hostname/network for puppetdb tests (#2969)<commit_after>version: '3.5'

services:
  postgres:
    hostname: postgres
    domainname: test
    image: postgres:9.6
    environment:
      - POSTGRES_PASSWORD=<PASSWORD>
      - POSTGRES_USER=puppetdb
      - POSTGRES_DB=puppetdb
    expose:
      - 5432
    volumes:
      - ./puppetdb/postgres-custom:/docker-entrypoint-initdb.d
      - ${VOLUME_ROOT:-.}/pgdata:/var/lib/postgresql/data
    dns_search: 'test'
    networks:
      puppetdb_test:
        aliases:
          - postgres.test

  puppetdb:
    hostname: puppetdb
    domainname: test
    image: ${PUPPET_TEST_DOCKER_IMAGE:-puppet/puppetdb}
    environment:
      - PUPPERWARE_ANALYTICS_ENABLED=${PUPPERWARE_ANALYTICS_ENABLED:-false}
      - PUPPETDB_POSTGRES_HOSTNAME=postgres.test
      - PUPPETDB_PASSWORD=<PASSWORD>
      - PUPPETDB_USER=puppetdb
      - USE_PUPPETSERVER=false
    ports:
      - 8080
      - 8081
    depends_on:
      - postgres
    dns_search: 'test'
    networks:
      puppetdb_test:
        aliases:
          - puppetdb.test

networks:
  puppetdb_test:
    name: puppetdb_test
{'fraction_non_alphanumeric': 0.10032894736842106, 'fraction_numerical': 0.01918859649122807, 'mean_word_length': 2.557504873294347, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6057234', 'n_tokens_mistral': 739, 'n_tokens_neox': 703, 'n_words': 87}