<commit_before>version: '3'

services:
  web: &web_base
    build:
      context: .
      dockerfile: Dockerfile.dev
    image: publishers:latest
    environment:
      RAILS_ENV: development
      REDIS_URL: redis://redis:6379/0
      DATABASE_URL: postgres://postgres@postgres:5432/brave_publishers_dev
      DATABASE_URL_TEST: postgres://postgres@postgres:5432/brave_publishers_test
      SSL: "off"
      SENDGRID_SMTP_SERVER: mailcatcher
      DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL: "true"
    command: sh -c "rm -f tmp/pids/server.pid && ./scripts/entrypoint.sh && bundle exec rails s -p 3000 -b '0.0.0.0'"
    depends_on:
      - postgres
      - redis
    volumes:
      - .:/var/www
      - /var/www/node_modules/
      - /var/www/tmp/cache/webpacker/
    ports:
      - "3000:3000"
    env_file: .env.example

  postgres:
    image: postgres:12-alpine
    environment:
      POSTGRES_HOST_AUTH_METHOD: trust
    volumes:
      - "db-data:/var/lib/postgresql/data:rw"
<commit_msg>task: Make SSL work with dev context<commit_after>version: '3'

services:
  web: &web_base
    build:
      context: .
      dockerfile: Dockerfile.dev
    image: publishers:latest
    environment:
      RAILS_ENV: development
      REDIS_URL: redis://redis:6379/0
      DATABASE_URL: postgres://postgres@postgres:5432/brave_publishers_dev
      DATABASE_URL_TEST: postgres://postgres@postgres:5432/brave_publishers_test
      ADDRESS: "0.0.0.0"
      SENDGRID_SMTP_SERVER: mailcatcher
      DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL: "true"
    command: sh -c "rm -f tmp/pids/server.pid && ./scripts/entrypoint.sh && bundle exec rails s"
    depends_on:
      - postgres
      - redis
    volumes:
      - .:/var/www
      - /var/www/node_modules/
      - /var/www/tmp/cache/webpacker/
    ports:
      - "3000:3000"
    env_file: .env.example

  postgres:
    image: postgres:12-alpine
    environment:
      POSTGRES_HOST_AUTH_METHOD: trust
    volumes:
      - "db-data:/var/lib/postgresql/data:rw"

{'fraction_non_alphanumeric': 0.11261261261261261, 'fraction_numerical': 0.03003003003003003, 'mean_word_length': 2.6279491833030852, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '1023887', 'n_tokens_mistral': 790, 'n_tokens_neox': 734, 'n_words': 122}