<commit_before>version: '2'

services:
  proxy:
    image: traefik:v1.2.0-rc1
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - "./proxy/prod.toml:/etc/traefik/traefik.toml"
      - "/data/acme:/etc/traefik/acme"

  gateway:
    image: traefik:v1.1.2
    ports:
      - "8888:8888"
    volumes:
      - "./gateway/prod.toml:/etc/traefik/traefik.toml"
      - "/var/run/docker.sock:/var/run/docker.sock"
    labels:
      - "traefik.backend=gateway"

  redis:
    image: redis:2.8.19
    ports:
      - 6379:6379

  broadcaster:
    build:
      context: ./broadcaster
    labels:
      - "traefik.frontend.rule=PathPrefixStrip:/broadcaster"
      - "traefik.port=9400"
      - "traefik.backend=broadcaster"

  data-service:
    build:
      context: ./data-service
    labels:
      - "traefik.frontend.rule=PathPrefixStrip:/data-service"
      - "traefik.port=3721"
      - "traefik.backend=data-service"

  delivery:
    build:
      context: ./delivery
    labels:
      - "traefik.frontend.rule=PathPrefixStrip:/delivery"
      - "traefik.port=3000"
      - "traefik.backend=delivery"

  frontend:
    image: nginx:1.11.8-alpine
    ports:
      - "8080:80"
    volumes:
      - "./frontend/index.html:/usr/share/nginx/html/index.html"
      - "./frontend/dist:/usr/share/nginx/html/dist"
    labels:
      - "traefik.frontend.rule=PathPrefixStrip:/frontend"
      - "traefik.port=80"
      - "traefik.backend=frontend"

  games:
    build:
      context: ./gamemanager
    environment:
     - SITE_BASE_URL=https://curling.goforecrew.com
    labels:
      - "traefik.frontend.rule=PathPrefixStrip:/games"
      - "traefik.port=5000"
      - "traefik.backend=games"

  scores:
    build:
      context: ./scores
    labels:
      - "traefik.frontend.rule=PathPrefixStrip:/scores"
      - "traefik.port=5000"
      - "traefik.backend=scores"

  physics:
    build:
      context: ./physics
    labels:
      - "traefik.frontend.rule=PathPrefixStrip:/physics"
      - "traefik.port=3005"
      - "traefik.backend=physics"

  results:
    build:
      context: ./results
    command: bash -c "dotnet restore && dotnet run --server.urls http://*:5000"
    labels:
      - "traefik.frontend.rule=PathPrefixStrip:/results"
      - "traefik.port=5000"
      - "traefik.backend=results"<commit_msg>Add humanizer to production docker-compose<commit_after>version: '2'

services:
  proxy:
    image: traefik:v1.2.0-rc1
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - "./proxy/prod.toml:/etc/traefik/traefik.toml"
      - "/data/acme:/etc/traefik/acme"

  gateway:
    image: traefik:v1.1.2
    ports:
      - "8888:8888"
    volumes:
      - "./gateway/prod.toml:/etc/traefik/traefik.toml"
      - "/var/run/docker.sock:/var/run/docker.sock"
    labels:
      - "traefik.backend=gateway"

  redis:
    image: redis:2.8.19
    ports:
      - 6379:6379

  broadcaster:
    build:
      context: ./broadcaster
    labels:
      - "traefik.frontend.rule=PathPrefixStrip:/broadcaster"
      - "traefik.port=9400"
      - "traefik.backend=broadcaster"

  data-service:
    build:
      context: ./data-service
    labels:
      - "traefik.frontend.rule=PathPrefixStrip:/data-service"
      - "traefik.port=3721"
      - "traefik.backend=data-service"

  delivery:
    build:
      context: ./delivery
    labels:
      - "traefik.frontend.rule=PathPrefixStrip:/delivery"
      - "traefik.port=3000"
      - "traefik.backend=delivery"

  frontend:
    image: nginx:1.11.8-alpine
    ports:
      - "8080:80"
    volumes:
      - "./frontend/index.html:/usr/share/nginx/html/index.html"
      - "./frontend/dist:/usr/share/nginx/html/dist"
    labels:
      - "traefik.frontend.rule=PathPrefixStrip:/frontend"
      - "traefik.port=80"
      - "traefik.backend=frontend"

  games:
    build:
      context: ./gamemanager
    environment:
     - SITE_BASE_URL=https://curling.goforecrew.com
    labels:
      - "traefik.frontend.rule=PathPrefixStrip:/games"
      - "traefik.port=5000"
      - "traefik.backend=games"

  scores:
    build:
      context: ./scores
    labels:
      - "traefik.frontend.rule=PathPrefixStrip:/scores"
      - "traefik.port=5000"
      - "traefik.backend=scores"

  physics:
    build:
      context: ./physics
    labels:
      - "traefik.frontend.rule=PathPrefixStrip:/physics"
      - "traefik.port=3005"
      - "traefik.backend=physics"

  results:
    build:
      context: ./results
    command: bash -c "dotnet restore && dotnet run --server.urls http://*:5000"
    labels:
      - "traefik.frontend.rule=PathPrefixStrip:/results"
      - "traefik.port=5000"
      - "traefik.backend=results"

  humanizer:
    image: alkukampela/humanizer
    ports:
      - 12006:8080
    labels:
      - "traefik.frontend.rule=PathPrefixStrip:/humanizer"
      - "traefik.port=8080"
      - "traefik.backend=humanizer"
{'fraction_non_alphanumeric': 0.14688335733388191, 'fraction_numerical': 0.03641226085167661, 'mean_word_length': 2.2327127659574466, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6128186', 'n_tokens_mistral': 1983, 'n_tokens_neox': 1835, 'n_words': 224}