<commit_before>version: '3'
services:

  db:
    image: napstr/wolfia-postgres:master
    restart: always
    volumes:
      - ./postgres-data:/var/lib/postgresql/data
    environment:
      #See the README of the database docker image
      - ROLE=wolfia
      - DB=wolfia
      - BACKUP_DB=wolfia
      - BACKUP_APPNAME=wolfia
      - BACKUP_BUCKET_DAILY=fill_this_out
      - BACKUP_BUCKET_WEEKLY=fill_this_out
      - BACKUP_BUCKET_MONTHLY=fill_this_out
      - BACKUP_ACCOUNT_ID=fill_this_out
      - BACKUP_APP_KEY=fill_this_out

  bot:
    image: napstr/wolfia:master
    restart: on-failure:3
    depends_on:
      - db
    ports:
      - 4567:4567
    volumes:
      - ./wolfia.yaml:/opt/wolfia/wolfia.yaml
      - ./logs:/opt/wolfia/logs
      - ./logs/gc:/opt/wolfia/logs/gc
    stop_grace_period: 7200s #should really be enough to finish all games
    entrypoint:
      - java
      - -jar
      - -Xmx2g
      - -XX:+HeapDumpOnOutOfMemoryError
      - -XX:HeapDumpPath=emergencydump.hprof
      - -Xlog:gc*:logs/gc/gc-%t.log::filesize=1g
      - -XX:+UseG1GC
      - -XX:+ParallelRefProcEnabled
      - -XX:+UseStringDeduplication
      - wolfia.jar<commit_msg>Always restart wolfia docker container<commit_after>version: '3'
services:

  db:
    image: napstr/wolfia-postgres:master
    restart: always
    volumes:
      - ./postgres-data:/var/lib/postgresql/data
    environment:
      #See the README of the database docker image
      - ROLE=wolfia
      - DB=wolfia
      - BACKUP_DB=wolfia
      - BACKUP_APPNAME=wolfia
      - BACKUP_BUCKET_DAILY=fill_this_out
      - BACKUP_BUCKET_WEEKLY=fill_this_out
      - BACKUP_BUCKET_MONTHLY=fill_this_out
      - BACKUP_ACCOUNT_ID=fill_this_out
      - BACKUP_APP_KEY=fill_this_out

  bot:
    image: napstr/wolfia:master
    restart: always
    depends_on:
      - db
    ports:
      - 4567:4567
    volumes:
      - ./wolfia.yaml:/opt/wolfia/wolfia.yaml
      - ./logs:/opt/wolfia/logs
      - ./logs/gc:/opt/wolfia/logs/gc
    stop_grace_period: 7200s #should really be enough to finish all games
    entrypoint:
      - java
      - -Xmx2g
      - -XX:+HeapDumpOnOutOfMemoryError
      - -XX:HeapDumpPath=emergencydump.hprof
      - -Xlog:gc*:logs/gc/gc-%t.log::filesize=1g
      - -XX:+UseG1GC
      - -XX:+ParallelRefProcEnabled
      - -XX:+UseStringDeduplication
      - -jar
      - wolfia.jar
{'fraction_non_alphanumeric': 0.10477397549640896, 'fraction_numerical': 0.01394169835234474, 'mean_word_length': 2.2617079889807163, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2327617', 'n_tokens_mistral': 942, 'n_tokens_neox': 889, 'n_words': 127}