<commit_before># ###################################
# This file is generated by puppet
# PLEASE DON'T MODIFY BY HAND
# ###################################

<% if scope.lookupvar('che::che_multiuser') == 'true' -%>
version: '2.1'
services:
<% end -%>

  ########################
  # CHE
  ########################
  che:
<% if scope.lookupvar('che::che_multiuser') == 'true' -%>
    image: <%= ENV["IMAGE_CHE_MULTIUSER"] %>
<% else -%>
    image: <%= ENV["IMAGE_CHE"] %>
<% end -%>
    env_file:
<% if @compose_file_for_containers == true -%>
      - '<%= ENV["CHE_CONTAINER_ROOT"] %>/instance/config/che/che.env'
<% else -%>
      - '<%= ENV["CHE_ENV_FILE"] %>'
<% end -%>
<% if scope.lookupvar('che::che_multiuser') == 'true' -%>
    links:
      - postgres:postgres
    depends_on:
      postgres:
        condition: service_healthy
    networks:
      - default
      - che-network
<% end -%>
    volumes:
      - '/var/run/docker.sock:/var/run/docker.sock'
      - '<%= scope.lookupvar('che::che_instance') -%>/data:/data'
      - '<%= scope.lookupvar('che::che_instance') -%>/logs:/logs'
      - '<%= scope.lookupvar('che::che_instance') -%>/config/che:/conf'
<% if scope.lookupvar('che::che_dev_env') == 'on' -%>
      - '<%= scope.lookupvar('che::che_assembly') -%>:/assembly'
<% end -%>
<% if scope.lookupvar('che::che_user') != 'root' -%>
      - '/etc/group:/etc/group:ro'
      - '/etc/passwd:/etc/passwd:ro'
<% end -%>
    ports:
<% if @che_jmx_enabled == 'true' -%>
      - '32001:32001'
      - '32101:32101'
<% end -%>
<% if scope.lookupvar('che::che_single_port') == 'true' -%>
      - 8080
<% else -%>
      - '<%= scope.lookupvar('che::che_port') -%>:<%= scope.lookupvar('che::che_port') -%>'
<% end -%>
<% if scope.lookupvar('che::che_env') == 'development' -%>
      - '<%= scope.lookupvar('che::che_debug_port') -%>:<%= scope.lookupvar('che::che_debug_port') -%>'
<% end -%>
<% if scope.lookupvar('che::che_single_port') == 'true' -%>
    labels:
      traefik.che.frontend.backend: "che-server"
      traefik.che.frontend.entryPoints: "http"
      traefik.che.port: "<%= scope.lookupvar('che::che_port') -%>"
      traefik.che.frontend.rule: "PathPrefix:/"<commit_msg>Added Traefik's docker.network label to fix multiuser single_port (#7170)<commit_after># ###################################
# This file is generated by puppet
# PLEASE DON'T MODIFY BY HAND
# ###################################

<% if scope.lookupvar('che::che_multiuser') == 'true' -%>
version: '2.1'
services:
<% end -%>

  ########################
  # CHE
  ########################
  che:
<% if scope.lookupvar('che::che_multiuser') == 'true' -%>
    image: <%= ENV["IMAGE_CHE_MULTIUSER"] %>
<% else -%>
    image: <%= ENV["IMAGE_CHE"] %>
<% end -%>
    env_file:
<% if @compose_file_for_containers == true -%>
      - '<%= ENV["CHE_CONTAINER_ROOT"] %>/instance/config/che/che.env'
<% else -%>
      - '<%= ENV["CHE_ENV_FILE"] %>'
<% end -%>
<% if scope.lookupvar('che::che_multiuser') == 'true' -%>
    links:
      - postgres:postgres
    depends_on:
      postgres:
        condition: service_healthy
    networks:
      - default
      - che-network
<% end -%>
    volumes:
      - '/var/run/docker.sock:/var/run/docker.sock'
      - '<%= scope.lookupvar('che::che_instance') -%>/data:/data'
      - '<%= scope.lookupvar('che::che_instance') -%>/logs:/logs'
      - '<%= scope.lookupvar('che::che_instance') -%>/config/che:/conf'
<% if scope.lookupvar('che::che_dev_env') == 'on' -%>
      - '<%= scope.lookupvar('che::che_assembly') -%>:/assembly'
<% end -%>
<% if scope.lookupvar('che::che_user') != 'root' -%>
      - '/etc/group:/etc/group:ro'
      - '/etc/passwd:/etc/passwd:ro'
<% end -%>
    ports:
<% if @che_jmx_enabled == 'true' -%>
      - '32001:32001'
      - '32101:32101'
<% end -%>
<% if scope.lookupvar('che::che_single_port') == 'true' -%>
      - 8080
<% else -%>
      - '<%= scope.lookupvar('che::che_port') -%>:<%= scope.lookupvar('che::che_port') -%>'
<% end -%>
<% if scope.lookupvar('che::che_env') == 'development' -%>
      - '<%= scope.lookupvar('che::che_debug_port') -%>:<%= scope.lookupvar('che::che_debug_port') -%>'
<% end -%>
<% if scope.lookupvar('che::che_single_port') == 'true' -%>
    labels:
      traefik.che.frontend.backend: "che-server"
      traefik.che.frontend.entryPoints: "http"
      traefik.che.port: "<%= scope.lookupvar('che::che_port') -%>"
      traefik.che.frontend.rule: "PathPrefix:/"
      <% if scope.lookupvar('che::che_multiuser') == 'true' -%>
      traefik.che.docker.network: "che_default"
      <% end -%>
{'fraction_non_alphanumeric': 0.2765259243054036, 'fraction_numerical': 0.01225114854517611, 'mean_word_length': 3.4003849855630413, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, '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': '5451391', 'n_tokens_mistral': 1841, 'n_tokens_neox': 1689, 'n_words': 223}