<commit_before> version: '2'
 services:
  # Database servers
  postgres:
    image: postgres:9.3
    environment:
      POSTGRES_PASSWORD: <PASSWORD>
      POSTGRES_USER: postgres
  redis:
    image: redis
  elasticsearch:
    image: elasticsearch

  # Web server, routing /api and / to server, client respectively
  nginx:
    build:
      context: ./scripts
      dockerfile: Dockerfile.nginx
    links: [client, server]
    ports: [80]

  # Rails server
  server: &rails
    links: [postgres, redis, elasticsearch]
    build: ./server
    volumes:
      - ./server:/opt/hummingbird/server
    environment:
      RAILS_ENV: development

  # Sidekiq
  sidekiq:
    <<: *rails
    command: [sidekiq]

  # Ember server
  client:
    build: ./client
    volumes:
      - ./client:/opt/hummingbird/client
      - /opt/hummingbird/client/node_modules
    environment:
      EMBER_ENV: development
    ports:
      - "57777:57777"
<commit_msg>docker: add some more permanent volumes plus a tmpfs mount<commit_after>version: '2'

volumes:
  postgres:
    driver: local
  node_modules:
    driver: local

services:
  # Database servers
  postgres:
    image: postgres:9.3
    environment:
      PGDATA: /var/lib/postgresql/data/pgdata
      POSTGRES_PASSWORD: <PASSWORD>
      POSTGRES_USER: postgres
    volumes:
      - postgres:/var/lib/postgresql/data
  redis:
    image: redis
  elasticsearch:
    image: elasticsearch

  # Web server, routing /api and / to server, client respectively
  nginx:
    build:
      context: ./scripts
      dockerfile: Dockerfile.nginx
    links: [client, server]
    ports: [80]

  # Rails server
  server: &rails
    links: [postgres, redis, elasticsearch]
    build: ./server
    volumes:
      - ./server:/opt/hummingbird/server
    environment:
      DATABASE_URL: 'postgresql://postgres:mysecretpassword@postgres/'
      REDIS_URL: 'redis://redis/1'
      RAILS_ENV: development

  # Sidekiq
  sidekiq:
    <<: *rails
    command: [sidekiq]

  # Ember server
  client:
    build: ./client
    volumes:
      - ./client:/opt/hummingbird/client
      - /opt/hummingbird/client/node_modules
      - /opt/hummingbird/client/bower_components
    tmpfs:
      - /opt/coachnite/client/tmp
    environment:
      EMBER_ENV: development
    ports: ['57777:57777']

{'fraction_non_alphanumeric': 0.10353866317169069, 'fraction_numerical': 0.013543031891655745, 'mean_word_length': 2.561430793157076, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '4467552', 'n_tokens_mistral': 805, 'n_tokens_neox': 761, 'n_words': 172}