<commit_before>version: '3'

services:
  radio:
    build: ./
    image: segleralex/php-radio
    networks:
      - mynet
    ports:
      - "80:80"
    deploy:
      mode: global
  dbserver:
    image: mariadb
    environment:
       - MYSQL_ROOT_PASSWORD=<PASSWORD>
       - MYSQL_USER=radiouser
       - MYSQL_PASSWORD=password
       - MYSQL_DATABASE=radio
    networks:
      - mynet
    volumes:
      - ./latest.sql.gz:/docker-entrypoint-initdb.d/radio.sql.gz
      - /home/segler/mydb:/var/lib/mysql
    deploy:
      placement:
        constraints:
          - node.labels.dbserver == true
  streamcheck:
    image: segleralex/stream-check
    networks:
      - mynet
    deploy:
      mode: global
networks:
  mynet:
    driver: "overlay"
    driver_opts:
      encrypted: ""<commit_msg>added regular check service to docker compose<commit_after>version: '3'

services:
  radio:
    build: ./
    image: segleralex/php-radio
    networks:
      - mynet
    ports:
      - "80:80"
    deploy:
      mode: global
  dbserver:
    image: mariadb
    environment:
       - MYSQL_ROOT_PASSWORD=<PASSWORD>
       - MYSQL_USER=radiouser
       - MYSQL_PASSWORD=password
       - MYSQL_DATABASE=radio
    networks:
      - mynet
    volumes:
      - ./latest.sql.gz:/docker-entrypoint-initdb.d/radio.sql.gz
      - /home/segler/mydb:/var/lib/mysql
    deploy:
      placement:
        constraints:
          - node.labels.dbserver == true
  streamcheck:
    image: segleralex/stream-check
    environment:
      - SERVICE=streamcheck
    networks:
      - mynet
    deploy:
      mode: global
  regularcheck:
    image: segleralex/stream-regular-check
    environment:
      - SERVICE=streamcheck
      - MYSQL_USER=radiouser
      - MYSQL_PASSWORD=password
      - MYSQL_DATABASE=radio
      - DB_SERVER=dbserver
    networks:
      - mynet
networks:
  mynet:
    driver: "overlay"
    driver_opts:
      encrypted: ""
{'fraction_non_alphanumeric': 0.09947916666666666, 'fraction_numerical': 0.005208333333333333, 'mean_word_length': 2.0156985871271584, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1411601', 'n_tokens_mistral': 659, 'n_tokens_neox': 669, 'n_words': 111}