# For running data integration tests in FilterLists.Data.Tests

version: "3.7"

services:
  api:
    image: filiterlists.api:test-data
    build:
      context: .
      dockerfile: src/FilterLists.Api/Dockerfile
      target: test-data
    depends_on:
      - mariadb

  mariadb:
    image: mariadb:10
    environment:
      - MYSQL_ROOT_PASSWORD=filterlists
      - MYSQL_DATABASE=filterlists
      - MYSQL_USER=filterlists
      - MYSQL_PASSWORD=filterlists
    command:
      [
        "mysqld",
        "--character-set-server=utf8mb4",
        "--collation-server=utf8mb4_unicode_520_ci"
      ]

# For running data integration tests in FilterLists.Data.Tests

version: "3.7"

services:
  api:
    build:
      context: .
      dockerfile: src/FilterLists.Api/Dockerfile
      target: test-data
    depends_on:
      - mariadb

  mariadb:
    image: mariadb:10
    environment:
      - MYSQL_ROOT_PASSWORD=filterlists
      - MYSQL_DATABASE=filterlists
      - MYSQL_USER=filterlists
      - MYSQL_PASSWORD=filterlists
    command:
      [
        "mysqld",
        "--character-set-server=utf8mb4",
        "--collation-server=utf8mb4_unicode_520_ci"
      ]

Revert "try specifying tag in compose to preserve build cache during later steps"
Revert "try specifying tag in compose to preserve build cache during later steps"

This reverts commit 24f702a1c28bf57904db256b07a889cfd2b0b716.
