version: '2.1'

volumes:
  mysql:
    driver: local
  rvf-store:
    driver: local

services:
  db:
    image: mysql:5.7
    restart: always
    environment:
      - MYSQL_ROOT_PASSWORD=snomed
      - MYSQL_USERNAME=rvf_user
      - MYSQL_PASSWORD=snomedrvf
      - MYSQL_DATABASE=rvf_master
    networks:
      rvf_net:
        aliases:
         - sql
    volumes:
      - mysql:/var/lib/mysql
    command:
        mysqld --sql_mode="NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES"
  rvf:
    image: snomedinternational/release-validation-framework:latest
    container_name: rvf
    depends_on:
      - db
    environment:
      - rvf.assertion.import.required=true
    entrypoint: java -Xms512m -Xmx4g -DrvfConfigLocation=/app/config -jar api.jar --server.port=8081 --server.servlet.context-path=/api
    ports:
      - 8081:8081
    networks:
      - rvf_net
    volumes:
      - rvf-store:/app/store
    restart: always

networks:
  rvf_net:

version: '2.1'

volumes:
  mysql:
    driver: local
  rvf-store:
    driver: local

services:
  db:
    image: mysql:5.7
    restart: always
    environment:
      - MYSQL_ROOT_PASSWORD=snomed
      - MYSQL_USERNAME=rvf_user
      - MYSQL_PASSWORD=snomedrvf
      - MYSQL_DATABASE=rvf_master
    networks:
      rvf_net:
        aliases:
         - sql
    volumes:
      - mysql:/var/lib/mysql
    command:
        mysqld --sql_mode="NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES" --lower_case_table_names=1
  rvf:
    image: snomedinternational/release-validation-framework:latest
    container_name: rvf
    depends_on:
      - db
    environment:
      - rvf.assertion.import.required=true
    entrypoint: java -Xms512m -Xmx4g -DrvfConfigLocation=/app/config -jar api.jar --server.port=8081 --server.servlet.context-path=/api
    ports:
      - 8081:8081
    networks:
      - rvf_net
    volumes:
      - rvf-store:/app/store
    restart: always

networks:
  rvf_net:

Fix failing test issues because of mixed case table names
Fix failing test issues because of mixed case table names
