<commit_before>version: "3.8"
services:
  db:
    image: mariadb
    environment:
      MYSQL_ROOT_PASSWORD: "${<PASSWORD>}"
      MYSQL_DATABASE: "${DB_NAME}"
    expose:
      - "3306"
    networks:
      - "default-network"
    volumes:
      - "persistent_db:/var/lib/mysql"
  wordpress:
    user: "${WPFY_UID}:${WPFY_GID}"
    build: .
    expose:
      - "9000"
    environment:
      WORDPRESS_DB_HOST: "${DB_HOST}:${DB_PORT}"
      WORDPRESS_DB_USER: "${DB_USER}"
      WORDPRESS_DB_PASSWORD: "${DB_PASSWORD}"
      WORDPRESS_DB_NAME: "${DB_NAME}"
      WORDPRESS_DEBUG: 1
      WORDPRESS_CONFIG_EXTRA: "define( 'DISABLE_WP_CRON', true );"
    networks:
      - "default-network"
    volumes:
      - "./build/wordpress:/var/www/html"
      - "./xdebug:/var/xdebug"
      - "./config/php.ini:/usr/local/etc/php/conf.d/overrides.ini"
    depends_on:
      - db
  server:
    image: nginx:latest
    networks:
      - "default-network"
    ports:
      - "${SERVER_PORT}:80"
    volumes:
      - "./build/wordpress:/var/www/html"
      - "./config/nginx:/etc/nginx"
    depends_on:
      - "wordpress"
      - "db"
networks:
  default-network:
    driver: bridge
volumes:
  persistent_db:<commit_msg>Show WordPress-generated errors in xdebug folder<commit_after>version: "3.8"
services:
  db:
    image: mariadb
    environment:
      MYSQL_ROOT_PASSWORD: "${<PASSWORD>}"
      MYSQL_DATABASE: "${DB_NAME}"
    expose:
      - "3306"
    networks:
      - "default-network"
    volumes:
      - "persistent_db:/var/lib/mysql"
  wordpress:
    user: "${WPFY_UID}:${WPFY_GID}"
    build: .
    expose:
      - "9000"
    environment:
      WORDPRESS_DB_HOST: "${DB_HOST}:${DB_PORT}"
      WORDPRESS_DB_USER: "${DB_USER}"
      WORDPRESS_DB_PASSWORD: "${<PASSWORD>}"
      WORDPRESS_DB_NAME: "${DB_NAME}"
      WORDPRESS_DEBUG: 1
      WORDPRESS_CONFIG_EXTRA: |
        define( 'DISABLE_WP_CRON', true );
        define( 'WP_DEBUG_LOG', '/var/xdebug/wp-errors.log' );
    networks:
      - "default-network"
    volumes:
      - "./build/wordpress:/var/www/html"
      - "./xdebug:/var/xdebug"
      - "./config/php.ini:/usr/local/etc/php/conf.d/overrides.ini"
    depends_on:
      - db
  server:
    image: nginx:latest
    networks:
      - "default-network"
    ports:
      - "${SERVER_PORT}:80"
    volumes:
      - "./build/wordpress:/var/www/html"
      - "./config/nginx:/etc/nginx"
    depends_on:
      - "wordpress"
      - "db"
networks:
  default-network:
    driver: bridge
volumes:
  persistent_db:
{'fraction_non_alphanumeric': 0.15613825983313467, 'fraction_numerical': 0.010329757647993643, 'mean_word_length': 2.3618157543391187, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4641462', 'n_tokens_mistral': 950, 'n_tokens_neox': 935, 'n_words': 137}