<commit_before>version: '2'
services:
  webapp_setup:
    build:
      context: .
      dockerfile: Dockerfile.development
    depends_on:
      - <%= @db_service_name %>
    environment:
      - PASSENGER_APP_ENV=development
    entrypoint: ./setup.sh
  webapp:
    container_name: <%= @name %>
    build:
      context: .
      dockerfile: Dockerfile.development
    depends_on:
      - <%= @db_service_name %>
      - webapp_setup
    ports:
      - "80:80"
    environment:
      - PASSENGER_APP_ENV=development
    volumes:
      - .:/home/app/webapp
  <%= @db_service_name %>:
    image: <%= @db %>
    <%- if @db_password -%>
    environment:
      - <%= @db_password %>=<PASSWORD>
      - <%= @db_user %>=<%= @db_name %>
      - <%= @db_name %>=<%= @db_name %>_development
    <%- end -%>
    volumes_from:
      - data
  data:
    image: <%= @db %>
    volumes:
      - <%= @data_volume_dir %>
    command: "true"
  <%- @extras.each do |extra| -%>
  <%= extra.service_name %>:
    image: <%= extra.image %>
  <%- end -%><commit_msg>FIX: app name for db envs<commit_after>version: '2'
services:
  webapp_setup:
    build:
      context: .
      dockerfile: Dockerfile.development
    depends_on:
      - <%= @db_service_name %>
    environment:
      - PASSENGER_APP_ENV=development
    entrypoint: ./setup.sh
  webapp:
    container_name: <%= @name %>
    build:
      context: .
      dockerfile: Dockerfile.development
    depends_on:
      - <%= @db_service_name %>
      - webapp_setup
    ports:
      - "80:80"
    environment:
      - PASSENGER_APP_ENV=development
    volumes:
      - .:/home/app/webapp
  <%= @db_service_name %>:
    image: <%= @db %>
    <%- if @db_password -%>
    environment:
      - <%= @db_password %>=<PASSWORD>
      - <%= @db_user %>=<%= @name %>
      - <%= @db_name %>=<%= @name %>_development
    <%- end -%>
    volumes_from:
      - data
  data:
    image: <%= @db %>
    volumes:
      - <%= @data_volume_dir %>
    command: "true"
  <%- @extras.each do |extra| -%>
  <%= extra.service_name %>:
    image: <%= extra.image %>
  <%- end -%>
{'fraction_non_alphanumeric': 0.17480842911877395, 'fraction_numerical': 0.004789272030651341, 'mean_word_length': 2.1844512195121952, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '3809185', 'n_tokens_mistral': 835, 'n_tokens_neox': 746, 'n_words': 125}