<commit_before>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# I'd like to set cpu/memory/swap limits on the test-run containers
# and the app containers independently.
# This appears to be impossible so I have to try to get some kind
# of compromise; I don't want to limit the web-server but I do want
# to limit the test-containers. However if the limits are too low
# the web server container is unable to [docker pull] images on-demand
# in the setup pages.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Note: Dependencies between nginx and web are reflected in the
# nginx.conf file
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

version: '2'

volumes:
  languages:
    external:
      name: ${CYBER_DOJO_START_POINT_LANGUAGES}
  exercises:
    external:
      name: ${CYBER_DOJO_START_POINT_EXERCISES}
  custom:
    external:
      name: ${CYBER_DOJO_START_POINT_CUSTOM}

services:
  nginx:
    user: root
    image: cyberdojo/nginx
    container_name: cyber-dojo-nginx
    mem_limit: 50M
    memswap_limit: 50M
    restart: on-failure
    ports: [ "80:80" ]

  web:
    user: root
    image: cyberdojo/web
    container_name: cyber-dojo-web
    environment: [ CYBER_DOJO_HOME ]
    mem_limit: 2G
    memswap_limit: 2G
    restart: on-failure
    volumes:
      - languages:${CYBER_DOJO_HOME}/start_points/languages:ro
      - exercises:${CYBER_DOJO_HOME}/start_points/exercises:ro
      - custom:${CYBER_DOJO_HOME}/start_points/custom:ro

  puller:
    user: root
    image: cyberdojo/puller
    container_name: cyber-dojo-puller
    read_only: true
    tmpfs: /tmp
    mem_limit: 2G
    memswap_limit: 2G
    restart: on-failure
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

  runner:
    user: root
    image: cyberdojo/runner
    container_name: cyber-dojo-runner
    environment: [ CYBER_DOJO_RUNNER_CLASS ]<commit_msg>dropped unused runner env-var from docker-compose.yml<commit_after>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# I'd like to set cpu/memory/swap limits on the test-run containers
# and the app containers independently.
# This appears to be impossible so I have to try to get some kind
# of compromise; I don't want to limit the web-server but I do want
# to limit the test-containers. However if the limits are too low
# the web server container is unable to [docker pull] images on-demand
# in the setup pages.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Note: Dependencies between nginx and web are reflected in the
# nginx.conf file
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

version: '2'

volumes:
  languages:
    external:
      name: ${CYBER_DOJO_START_POINT_LANGUAGES}
  exercises:
    external:
      name: ${CYBER_DOJO_START_POINT_EXERCISES}
  custom:
    external:
      name: ${CYBER_DOJO_START_POINT_CUSTOM}

services:
  nginx:
    user: root
    image: cyberdojo/nginx
    container_name: cyber-dojo-nginx
    mem_limit: 50M
    memswap_limit: 50M
    restart: on-failure
    ports: [ "80:80" ]

  web:
    user: root
    image: cyberdojo/web
    container_name: cyber-dojo-web
    environment: [ CYBER_DOJO_HOME ]
    mem_limit: 2G
    memswap_limit: 2G
    restart: on-failure
    volumes:
      - languages:${CYBER_DOJO_HOME}/start_points/languages:ro
      - exercises:${CYBER_DOJO_HOME}/start_points/exercises:ro
      - custom:${CYBER_DOJO_HOME}/start_points/custom:ro

  puller:
    user: root
    image: cyberdojo/puller
    container_name: cyber-dojo-puller
    read_only: true
    tmpfs: /tmp
    mem_limit: 2G
    memswap_limit: 2G
    restart: on-failure
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

  runner:
    user: root
    image: cyberdojo/runner
    container_name: cyber-dojo-runner
{'fraction_non_alphanumeric': 0.12391247034010018, 'fraction_numerical': 0.006854732401792776, 'mean_word_length': 2.212531752751905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '187323', 'n_tokens_mistral': 1399, 'n_tokens_neox': 1357, 'n_words': 321}