<commit_before>version: "3.7"

services:
  jotihunt:
    image: ghcr.io/scoutingijsselgroep/jotihunt:latest
    env_file:
      - .env
    environment:
      - DATABASE_URL=mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@${MYSQL_HOSTNAME}/${MYSQL_DATABASE}
    networks:
      - jotihunt
    labels:
      - traefik.backend=jotihunt
      - traefik.frontend.rule=Host:${HOST_URI}
      - traefik.docker.network=proxy
      - traefik.port=3000
    depends_on:
      db:
        condition: service_healthy

  traefik:
    image: traefik:1.7.18-alpine
    command: --api --docker
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /var/traefik/traefik.toml:/traefik.toml
      - /var/traefik/acme.json:/acme.json
    ports:
      - 80:80
      - 443:443
      - 8080:8080
    labels:
      - traefik.frontend.rule=Host:backend.scouting-ijsselgroep.nl
      - traefik.port=8080
    environment:
      - CF_API_EMAIL
      - CF_API_KEY
      - C_COUNTER
    networks:
      - jotihunt

  db:
    image: mysql:8.0
    restart: always
    volumes:
      - dbdata:/var/lib/mysql
    environment:
      - MYSQL_USER
      - MYSQL_PASSWORD
      - MYSQL_DATABASE
      - MYSQL_ROOT_PASSWORD
    networks:
      - jotihunt
    labels:
      - traefik.enable = false

    healthcheck:
      test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
      timeout: 5s
      retries: 20<commit_msg>Add network to docker compose<commit_after>version: "3.7"

services:
  jotihunt:
    image: ghcr.io/scoutingijsselgroep/jotihunt:latest
    env_file:
      - .env
    environment:
      - DATABASE_URL=mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@${MYSQL_HOSTNAME}/${MYSQL_DATABASE}
    networks:
      - jotihunt
    labels:
      - traefik.backend=jotihunt
      - traefik.frontend.rule=Host:${HOST_URI}
      - traefik.docker.network=proxy
      - traefik.port=3000
    depends_on:
      db:
        condition: service_healthy

  traefik:
    image: traefik:1.7.18-alpine
    command: --api --docker
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /var/traefik/traefik.toml:/traefik.toml
      - /var/traefik/acme.json:/acme.json
    ports:
      - 80:80
      - 443:443
      - 8080:8080
    labels:
      - traefik.frontend.rule=Host:backend.scouting-ijsselgroep.nl
      - traefik.port=8080
    environment:
      - CF_API_EMAIL
      - CF_API_KEY
      - C_COUNTER
    networks:
      - jotihunt

  db:
    image: mysql:8.0
    restart: always
    volumes:
      - dbdata:/var/lib/mysql
    environment:
      - MYSQL_USER
      - MYSQL_PASSWORD
      - MYSQL_DATABASE
      - MYSQL_ROOT_PASSWORD
    networks:
      - jotihunt
    labels:
      - traefik.enable = false

    healthcheck:
      test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
      timeout: 5s
      retries: 20

networks:
  jotihunt:
    name: jotihunt
{'fraction_non_alphanumeric': 0.1190308988764045, 'fraction_numerical': 0.02598314606741573, 'mean_word_length': 2.063440860215054, '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': '7284169', 'n_tokens_mistral': 1151, 'n_tokens_neox': 1093, 'n_words': 151}