<commit_before>version: '2.2'

services:
  db:
    build: db
    image: desec/dedyn-dbslave:latest
    init: true
    volumes:
    - db_mysql:/var/lib/mysql
    environment:
    - DESECSLAVE_DB_PASSWORD_pdns
    - DESECSLAVE_ID
    - DESECSTACK_DBMASTER
    - DESECSTACK_DBMASTER_USERNAME_replication
    - DESECSTACK_DBMASTER_PASSWORD_replication
    volumes:
    - ${DESECSLAVE_CERT_FOLDER}:/etc/ssl/private
    - db_mysql:/var/lib/mysql
    networks:
      rear:
    logging:
      driver: "syslog"
      options:
        tag: "desec-slave/db"
    restart: unless-stopped

  ns:
    build: ns
    image: desec/dedyn-nsslave:latest
    init: true
    environment:
    - DESECSLAVE_CARBONSERVER
    - DESECSLAVE_CARBONOURNAME
    - DESECSLAVE_DB_PASSWORD_pdns
    - DESECSLAVE_LOGDNSQUERIES
    depends_on:
    - db
    ports:
    - "53:53"
    - "53:53/udp"
    networks:
      front:
        ipv4_address: 172.16.0.2
        ipv6_address: ${DESECSLAVE_IPV6_ADDRESS}
      rear:
    logging:
      driver: "syslog"
      options:
        tag: "desec-slave/ns"
    restart: unless-stopped

volumes:
  db_mysql:

networks:
  # Note that it is required that the front network ranks lower (in lexical order by
  # name) than the other networks. See https://github.com/docker/docker/issues/27101
  front:
    enable_ipv6: true
    driver: bridge
    ipam:
      driver: default
      config:
      - subnet: 172.16.0.0/24
        gateway: 172.16.0.1
      - subnet: ${DESECSLAVE_IPV6_SUBNET}
  rear:
    driver: bridge
    ipam:
      driver: default
      config:
      - subnet: 172.16.1.0/24
        gateway: 172.16.1.1
<commit_msg>chore(): rename images<commit_after>version: '2.2'

services:
  db:
    build: db
    image: desec/slave-db:latest
    init: true
    volumes:
    - db_mysql:/var/lib/mysql
    environment:
    - DESECSLAVE_DB_PASSWORD_pdns
    - DESECSLAVE_ID
    - DESECSTACK_DBMASTER
    - DESECSTACK_DBMASTER_USERNAME_replication
    - DESECSTACK_DBMASTER_PASSWORD_replication
    volumes:
    - ${DESECSLAVE_CERT_FOLDER}:/etc/ssl/private
    - db_mysql:/var/lib/mysql
    networks:
      rear:
    logging:
      driver: "syslog"
      options:
        tag: "desec-slave/db"
    restart: unless-stopped

  ns:
    build: ns
    image: desec/slave-ns:latest
    init: true
    environment:
    - DESECSLAVE_CARBONSERVER
    - DESECSLAVE_CARBONOURNAME
    - DESECSLAVE_DB_PASSWORD_pdns
    - DESECSLAVE_LOGDNSQUERIES
    depends_on:
    - db
    ports:
    - "53:53"
    - "53:53/udp"
    networks:
      front:
        ipv4_address: 172.16.0.2
        ipv6_address: ${DESECSLAVE_IPV6_ADDRESS}
      rear:
    logging:
      driver: "syslog"
      options:
        tag: "desec-slave/ns"
    restart: unless-stopped

volumes:
  db_mysql:

networks:
  # Note that it is required that the front network ranks lower (in lexical order by
  # name) than the other networks. See https://github.com/docker/docker/issues/27101
  front:
    enable_ipv6: true
    driver: bridge
    ipam:
      driver: default
      config:
      - subnet: 172.16.0.0/24
        gateway: 172.16.0.1
      - subnet: ${DESECSLAVE_IPV6_SUBNET}
  rear:
    driver: bridge
    ipam:
      driver: default
      config:
      - subnet: 172.16.1.0/24
        gateway: 172.16.1.1

{'fraction_non_alphanumeric': 0.09531106343855347, 'fraction_numerical': 0.03616304014710389, 'mean_word_length': 2.2542372881355934, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 10, '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': '7416725', 'n_tokens_mistral': 1315, 'n_tokens_neox': 1259, 'n_words': 230}