<commit_before>version: '3'
volumes:
  database_data:
    driver: local
  static_content:
    driver: local
networks:
  default:
    driver: bridge
  external:
    external:
      name: rnet 
services:
  resto:
    image: jjrom/resto:6.0
    restart: always
    build:
      context: ./
      dockerfile: ./build/resto/Dockerfile
    depends_on:
      - restodb
    networks:
      - default
      - external
    ports:
      - ${RESTO_EXPOSED_PORT:-5252}:80
    env_file:
      - ${ENV_FILE:-config.env}
    environment: 
      ### Set to 0 in production environment to activate opcache
      - RESTO_DEBUG=0
    healthcheck:
      test: ["CMD", "curl", "-f", "http://127.0.0.1"]
      interval: 1m
      timeout: 5s
    volumes:
      - ${RESTO_STATIC_CONTENT:-static_content}:/var/www/static
  restodb:
    image: jjrom/resto-database:6.0
    restart: always
    build:
      context: ./
      dockerfile: ./build/resto-database/Dockerfile
    # Upgrade shared_memory for complex queries
    shm_size: '2gb'
    command: docker-entrypoint.sh -c config_file=/etc/postgresql.conf
    networks:
      - default
      - external
    env_file:
      - ${ENV_FILE:-config.env}
    environment:
      - POSTGRES_PASSWORD=${DATABASE_USER_PASSWORD:-resto}
      - POSTGRES_USER=${DATABASE_USER_NAME:-resto}
      - POSTGRES_DB=${DATABASE_NAME:-resto}
    ports:
      - ${DATABASE_EXPOSED_PORT:-5253}:5432
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U ${DATABASE_USER_NAME:-resto}"]
      interval: 1m
      timeout: 5s<commit_msg>Set dev/shm configuration on build not on runtime<commit_after>version: '3'
volumes:
  database_data:
    driver: local
  static_content:
    driver: local
networks:
  default:
    driver: bridge
  external:
    external:
      name: rnet 
services:
  resto:
    image: jjrom/resto:6.0
    restart: always
    build:
      context: ./
      dockerfile: ./build/resto/Dockerfile
    depends_on:
      - restodb
    networks:
      - default
      - external
    ports:
      - ${RESTO_EXPOSED_PORT:-5252}:80
    env_file:
      - ${ENV_FILE:-config.env}
    environment: 
      ### Set to 0 in production environment to activate opcache
      - RESTO_DEBUG=0
    healthcheck:
      test: ["CMD", "curl", "-f", "http://127.0.0.1"]
      interval: 1m
      timeout: 5s
    volumes:
      - ${RESTO_STATIC_CONTENT:-static_content}:/var/www/static
  restodb:
    image: jjrom/resto-database:6.0
    restart: always
    build:
      context: ./
      dockerfile: ./build/resto-database/Dockerfile
      # Upgrade shared_memory for complex queries
      shm_size: '2gb'
    command: docker-entrypoint.sh -c config_file=/etc/postgresql.conf
    networks:
      - default
      - external
    env_file:
      - ${ENV_FILE:-config.env}
    environment:
      - POSTGRES_PASSWORD=${DATABASE_USER_PASSWORD:-resto}
      - POSTGRES_USER=${DATABASE_USER_NAME:-resto}
      - POSTGRES_DB=${DATABASE_NAME:-resto}
    ports:
      - ${DATABASE_EXPOSED_PORT:-5253}:5432
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U ${DATABASE_USER_NAME:-resto}"]
      interval: 1m
      timeout: 5s
{'fraction_non_alphanumeric': 0.1178548490687219, 'fraction_numerical': 0.020552344251766216, 'mean_word_length': 2.434399117971334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, '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': '7105217', 'n_tokens_mistral': 1129, 'n_tokens_neox': 1088, 'n_words': 206}