<commit_before>version: "2"

services:
  web:
    build: .
    command: nodemon -L --watch src --inspect=0.0.0.0:5858
    volumes:
      - .:/app
    ports:
      - "8000:8000"
      - "5858:5858"
    environment:
      DB_HOSTNAME: db
      DB_USERNAME: demo
      DB_PASSWORD: <PASSWORD>
      DB_DATABASE: demo
    depends_on:
      - db

  db:
    image: postgres:9.6.3-alpine
    environment:
      POSTGRES_USER: demo
      POSTGRES_PASSWORD: <PASSWORD>
      POSTGRES_DB: demo
    volumes:
      - pgdata:/var/lib/postgresql/data
      - ./sql:/docker-entrypoint-initdb.d

volumes:
  pgdata:<commit_msg>restart web app if it crashes<commit_after>version: "3"

services:
  web:
    build: .
    command: nodemon -L --exitcrash --watch src --inspect=0.0.0.0:5858
    restart: always
    volumes:
      - .:/app
    ports:
      - "8000:8000"
      - "5858:5858"
    environment:
      DB_HOSTNAME: db
      DB_USERNAME: demo
      DB_PASSWORD: <PASSWORD>
      DB_DATABASE: demo
    depends_on:
      - db

  db:
    image: postgres:9.6.3-alpine
    environment:
      POSTGRES_USER: demo
      POSTGRES_PASSWORD: <PASSWORD>
      POSTGRES_DB: demo
    volumes:
      - pgdata:/var/lib/postgresql/data
      - ./sql:/docker-entrypoint-initdb.d

volumes:
  pgdata:
{'fraction_non_alphanumeric': 0.11750788643533124, 'fraction_numerical': 0.04416403785488959, 'mean_word_length': 2.0431654676258995, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2328091', 'n_tokens_mistral': 521, 'n_tokens_neox': 484, 'n_words': 91}