<commit_before>version: '2'
services:
  john:
    build: postgresql95-patroni
    image: cfcommunity/postgresql-patroni:9.5
    container_name: john
    ports: ["5432"]
    environment:
      NAME: john
      PATRONI_SCOPE: beatles_cluster
      ETCD_HOST_PORT: ${HOST_IP}:4001
      DOCKER_HOSTNAME: ${HOST_IP}
      POSTGRES_USERNAME: john
      POSTGRESS_PASSWORD: <PASSWORD>np<PASSWORD>
    depends_on: [registrator, etcd]
  paul:
    build: postgresql95-patroni
    image: cfcommunity/postgresql-patroni:9.5
    container_name: paul
    ports: ["5432"]
    environment:
      NAME: paul
      PATRONI_SCOPE: beatles_cluster
      ETCD_HOST_PORT: ${HOST_IP}:4001
      DOCKER_HOSTNAME: ${HOST_IP}
      POSTGRES_USERNAME: paul
      POSTGRESS_PASSWORD: <PASSWORD>
    depends_on: [registrator, etcd]
  etcd:
    image: quay.io/coreos/etcd:v2.2.5
    container_name: etcd
    ports: ["4001:4001", "2380:2380", "2379:2379"]
    command:
    - -name=etcd0
    - -advertise-client-urls=http://${HOST_IP}:2379,http://${HOST_IP}:4001
    - -listen-client-urls=http://0.0.0.0:2379,http://0.0.0.0:4001
    - -initial-advertise-peer-urls=http://${HOST_IP}:2380
    - -listen-peer-urls=http://0.0.0.0:2380
    - -initial-cluster-token=etcd-cluster-1
    - -initial-cluster=etcd0=http://${HOST_IP}:2380
    - -initial-cluster-state=new
  registrator:
    image: cfcommunity/registrator:latest
    container_name: registrator
    network_mode: "host"
    volumes:
    - /var/run/docker.sock:/tmp/docker.sock
    command: /bin/registrator -hostname ${HOST_IP} -ip ${HOST_IP} etcd://${HOST_IP}:4001
    depends_on: [etcd]<commit_msg>Fix docker-compose.yml<commit_after>version: '2'
services:
  john:
    build: postgresql95-patroni
    image: cfcommunity/postgresql-patroni:9.5
    container_name: john
    ports: ["40000:5432"]
    env_file: wal-e-example.env
    environment:
      NAME: john
      PATRONI_SCOPE: beatles_cluster
      ETCD_HOST_PORT: ${HOST_IP}:4001
      DOCKER_HOSTNAME: ${HOST_IP}
      POSTGRES_USERNAME: john
      POSTGRES_PASSWORD: <PASSWORD>
    depends_on: [registrator, etcd]
  paul:
    build: postgresql95-patroni
    image: cfcommunity/postgresql-patroni:9.5
    container_name: paul
    ports: ["40001:5432"]
    env_file: wal-e-example.env
    environment:
      NAME: paul
      PATRONI_SCOPE: beatles_cluster
      ETCD_HOST_PORT: ${HOST_IP}:4001
      DOCKER_HOSTNAME: ${HOST_IP}
      POSTGRES_USERNAME: paul
      POSTGRES_PASSWORD: <PASSWORD>
    depends_on: [registrator, etcd]
  etcd:
    image: quay.io/coreos/etcd:v2.2.5
    container_name: etcd
    ports: ["4001:4001", "2380:2380", "2379:2379"]
    command:
    - -name=etcd0
    - -advertise-client-urls=http://${HOST_IP}:2379,http://${HOST_IP}:4001
    - -listen-client-urls=http://0.0.0.0:2379,http://0.0.0.0:4001
    - -initial-advertise-peer-urls=http://${HOST_IP}:2380
    - -listen-peer-urls=http://0.0.0.0:2380
    - -initial-cluster-token=<PASSWORD>
    - -initial-cluster=etcd0=http://${HOST_IP}:2380
    - -initial-cluster-state=new
  registrator:
    image: cfcommunity/registrator:latest
    container_name: registrator
    network_mode: "host"
    volumes:
    - /var/run/docker.sock:/tmp/docker.sock
    command: /bin/registrator -hostname ${HOST_IP} -ip ${HOST_IP} etcd://${HOST_IP}:4001
    depends_on: [etcd]
{'fraction_non_alphanumeric': 0.14307274373679443, 'fraction_numerical': 0.062481134923030486, 'mean_word_length': 3.2055837563451774, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '6854989', 'n_tokens_mistral': 1421, 'n_tokens_neox': 1318, 'n_words': 182}