<commit_before>version: "2"

services:
  db:
    image: wodby/drupal-mariadb
    environment:
      MYSQL_RANDOM_ROOT_PASSWORD: 1
      MYSQL_DATABASE: drupal
      MYSQL_USER: drupal
      MYSQL_PASSWORD: <PASSWORD>
    volumes:
      - ./mariadb:/var/lib/mysql
#      - ./mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here
#    ports:
#      - "3306:3306"

  app:
    image: wodby/drupal-php:7.0 # Allowed: 7.0, 5.6
    environment:
      DRUPAL_VERSION: 8 # Allowed: 7, 8
#      XDEBUG_CONFIG: xdebug.remote_autostart=1
    links:
      - db
      - cache
    volumes:
      - ./docroot:/var/www/html

  web:
    image: wodby/drupal-nginx
    links:
      - app
    volumes_from:
      - app
    ports:
      - "8000:80"

  mailcatcher:
    image: junxy/docker-mailcatcher
    ports:
      - "1025:1025"
      - "1080:1080"

  cache:
    image: redis:3.2-alpine
#    image: memcached:1.4-alpine
#    ports:
#      - "6379:6379" # For redis
##      - "11211:11211" # For memcached<commit_msg>Added phpmyadmin and solr, removed docker links,  reworked DRUPAL_VERSION env var<commit_after>version: "2"

services:
  db:
    image: wodby/drupal-mariadb
    environment:
      MYSQL_RANDOM_ROOT_PASSWORD: 1
      MYSQL_DATABASE: drupal
      MYSQL_USER: drupal
      MYSQL_PASSWORD: <PASSWORD>
    volumes:
      - ./mariadb:/var/lib/mysql
#      - ./mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here
#    ports:
#      - "3306:3306"

  app:
    image: wodby/drupal-php:7.0 # Allowed: 7.0, 5.6
    environment:
      XDEBUG_CONFIG: xdebug.remote_autostart=0 # Set 1 to enable Xdebug.
    volumes:
      - ./docroot:/var/www/html

  web:
    image: wodby/drupal-nginx
    environment:
      DRUPAL_VERSION: 8 # Allowed: 7, 8
    volumes_from:
      - app
    ports:
      - "8000:80"

  pma:
    image: phpmyadmin/phpmyadmin
    restart: always
    environment:
      PMA_HOST: db
      PMA_USER: drupal
      PMA_PASSWORD: <PASSWORD>
      PHP_UPLOAD_MAX_FILESIZE: 1G
      PHP_MAX_INPUT_VARS: 1G
    ports:
     - "8001:80"

  mail:
    image: junxy/docker-mailcatcher
    ports:
      - "8002:1080"

#  redis:
#    image: redis:3.2-alpine
#    ports:
#      - "6379:6379"

#  memcached:
#    image: memcached:1.4-alpine
#    ports:
#      - "11211:11211"

#  solr:
#    image: solr:5.5-alpine
#    volumes:
#      - ./solr:/opt/solr/server/solr/mycores
#    ports:
#      - "8983:8983"
{'fraction_non_alphanumeric': 0.12319736299958797, 'fraction_numerical': 0.05727235269880511, 'mean_word_length': 2.165580182529335, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1502333', 'n_tokens_mistral': 1070, 'n_tokens_neox': 987, 'n_words': 174}