<commit_before>version: "3.3"

networks:
  magento2:
    internal: true
  outside-pi-overlay:
    external: true
  traefik_traefik:
      external: true

services:
  web:
    image: ${REGISTRY_URL}/${DOCKER_STACK}-${DOCKER_SERVICE}_web:${CI_COMMIT_REF_SLUG}
    build:
      context: .
      dockerfile: ./bin/docker/images/default/Dockerfile
    ports:
      - "80"
    networks:
      - magento2
      - traefik_traefik
      - outside-pi-overlay
    env_file:
      - ./bin/docker/conf/acceptance/hipay.env.sample
      - ./bin/docker/conf/acceptance/auth.env.sample
      - ./bin/docker/conf/acceptance/mage.env.sample
      - ./bin/docker/conf/acceptance/module.env.sample
    deploy:
      labels:
        - "traefik.frontend.rule=Host:${DOCKER_STACK}-${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}.hipay-pos-platform.com"
        - "traefik.port=80"
        - "traefik.docker.network=traefik_traefik"
  smtp:
    image: schickling/mailcatcher
    ports:
      - "1080"
    networks:
      traefik_traefik:
      magento2:
        aliases:
          - ${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}-${CI_JOB_ID}_smtp
    deploy:
      labels:
        - "traefik.frontend.rule=Host:${DOCKER_STACK}-${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}-mail.hipay-pos-platform.com"
        - "traefik.port=1080"
        - "traefik.docker.network=traefik_traefik"
  database:
      image: mysql:5.7
      ports:
        - "3306"
      environment:
        - MYSQL_ROOT_PASSWORD=<PASSWORD>
      networks:
        magento2:
          aliases:
            - ${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}-${CI_JOB_ID}_database<commit_msg>Add seagull V2 support<commit_after>version: "3.3"

networks:
  magento2:
    internal: true
  outside-pi-overlay:
    external: true
  traefik_traefik:
      external: true

services:
  web:
    image: ${REGISTRY_URL}/${DOCKER_STACK}-${DOCKER_SERVICE}_web:${CI_COMMIT_REF_SLUG}
    build:
      context: .
      dockerfile: ./bin/docker/images/default/Dockerfile
    ports:
      - "80"
    networks:
      - magento2
      - traefik_traefik
      - outside-pi-overlay
    env_file:
      - ./bin/docker/conf/acceptance/hipay.env.sample
      - ./bin/docker/conf/acceptance/auth.env.sample
      - ./bin/docker/conf/acceptance/mage.env.sample
      - ./bin/docker/conf/acceptance/module.env.sample
    labels:
      - "com.hipay.ir.publish=1"
      - "com.hipay.ir.name=web"
      - "com.hipay.ir.branch=${CI_COMMIT_REF_SLUG}"
      - "com.hipay.ir.gitlab.feature.link=${CI_PROJECT_URL}/tree/${CI_COMMIT_REF_NAME}"
      - "com.hipay.ir.gitlab.org=pi-ecommerce"
      - "com.hipay.ir.gitlab.project=hipay-fullservice-sdk-magento2"
      - "com.hipay.ir.admin.url=${DOCKER_STACK}-${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}.hipay-pos-platform.com/admin"
      - "com.hipay.ir.url=${DOCKER_STACK}-${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}.hipay-pos-platform.com"
    deploy:
      labels:
        - "traefik.frontend.rule=Host:${DOCKER_STACK}-${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}.hipay-pos-platform.com"
        - "traefik.port=80"
        - "traefik.docker.network=traefik_traefik"
  smtp:
    image: schickling/mailcatcher
    ports:
      - "1080"
    networks:
      traefik_traefik:
      magento2:
        aliases:
          - ${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}-${CI_JOB_ID}_smtp
    labels:
      - "com.hipay.ir.publish=1"
      - "com.hipay.ir.name=mail"
      - "com.hipay.ir.branch=${CI_COMMIT_REF_SLUG}"
      - "com.hipay.ir.gitlab.feature.link=${CI_PROJECT_URL}/tree/${CI_COMMIT_REF_NAME}"
      - "com.hipay.ir.gitlab.org=pi-ecommerce"
      - "com.hipay.ir.gitlab.project=hipay-fullservice-sdk-magento2"
      - "com.hipay.ir.url=${DOCKER_STACK}-${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}-mail.hipay-pos-platform.com"
    deploy:
      labels:
        - "traefik.frontend.rule=Host:${DOCKER_STACK}-${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}-mail.hipay-pos-platform.com"
        - "traefik.port=1080"
        - "traefik.docker.network=traefik_traefik"
  database:
      image: mysql:5.7
      ports:
        - "3306"
      environment:
        - MYSQL_ROOT_PASSWORD=<PASSWORD>
      networks:
        magento2:
          aliases:
            - ${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}-${CI_JOB_ID}_database
{'fraction_non_alphanumeric': 0.14671723157146244, 'fraction_numerical': 0.012562218535197914, 'mean_word_length': 2.597612958226769, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4712821', 'n_tokens_mistral': 1682, 'n_tokens_neox': 1670, 'n_words': 143}