Sign inSign up

cleitonads16/casos-de-testes-ia-compose:latest

Manifest digest

sha256:63248a43f916f073baa40accbe6fdaa13d227ed88beeae755fcc5a561977c879

Last pushed

14 days by cleitonads16

Type

Compose

Manifest digest

sha256:63248a43f916f073baa40accbe6fdaa13d227ed88beeae755fcc5a561977c879

Compose file content

name: casos-teste

services:
  mysql:
    image: mysql:8.4
    restart: unless-stopped
    environment:
      MYSQL_DATABASE: casos_teste
      MYSQL_USER: casos_teste
      MYSQL_PASSWORD: ${MYSQL_PASSWORD:?defina MYSQL_PASSWORD}
      MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:?defina MYSQL_ROOT_PASSWORD}
    volumes:
      - dados-mysql:/var/lib/mysql
    healthcheck:
      test: ["CMD-SHELL", "mysql -ucasos_teste -p\"$$MYSQL_PASSWORD\" -e 'SELECT 1' casos_teste"]
      interval: 5s
      timeout: 5s
      retries: 30
      start_period: 20s

  api:
    image: cleitonads16/casos-de-testes-ia:latest
    restart: unless-stopped
    environment:
      DJANGO_SECRET_KEY: ${DJANGO_SECRET_KEY:?defina DJANGO_SECRET_KEY}
      DJANGO_ALLOWED_HOSTS: ${DJANGO_ALLOWED_HOSTS:-localhost,127.0.0.1}
      MYSQL_HOST: mysql
      MYSQL_DATABASE: casos_teste
      MYSQL_USER: casos_teste
      MYSQL_PASSWORD: ${MYSQL_PASSWORD:?defina MYSQL_PASSWORD}
      LLM_PROVIDER: ${LLM_PROVIDER:-regras}
      OPENAI_MODEL: ${OPENAI_MODEL:-}
      OLLAMA_URL: ${OLLAMA_URL:-http://host.docker.internal:11434}
      OLLAMA_MODEL: ${OLLAMA_MODEL:-}
      OLLAMA_NUM_CTX: ${OLLAMA_NUM_CTX:-}
      LLM_HIBRIDO_IA: ${LLM_HIBRIDO_IA:-}
      LLM_HIBRIDO_MAX_CASOS_IA: ${LLM_HIBRIDO_MAX_CASOS_IA:-}
      ANTHROPIC_API_KEY_FILE: /run/secrets/anthropic_api_key
      OPENAI_API_KEY_FILE: /run/secrets/openai_api_key
    secrets:
      - source: llm_api_key
        target: anthropic_api_key
      - source: llm_api_key
        target: openai_api_key
    extra_hosts:
      - "host.docker.internal:host-gateway"
    ports:
      - target: 8000
        published: "8000"
        host_ip: ${API_BIND_ADDRESS:-127.0.0.1}
        protocol: tcp
    volumes:
      - uploads:/app/uploads
    depends_on:
      mysql:
        condition: service_healthy

volumes:
  dados-mysql:
  uploads:

secrets:
  llm_api_key:
    environment: LLM_API_KEY

Docker commands

docker compose -f oci://cleitonads16/casos-de-testes-ia-compose:latest up

Use the above command to pull and run the Compose file. Learn more⁠.

Images used

Image + 1 more

MySQL is a widely used, open-source relational database management system (RDBMS).


Pulls

1B+

Stars

16195

Last Updated

2 days

Image

Projeto criado para definir casos de testes com base em escopos usando IA


Pulls

61

Stars

0

Last Updated

14 days