docker-compose.yml 753 Bytes
version: '3.8'

services:
  api-test-runner:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: api-test-${DEPLOY_ENV:-test}
    environment:
      - DEPLOY_ENV=${DEPLOY_ENV:-test}
      - IP_HOST=${IP_HOST:-}
      - PYTHONUNBUFFERED=1
    volumes:
      - ./api_cases.xlsx:/app/api_cases.xlsx:ro
      - ./env_config.py:/app/env_config.py:ro
      - ./reports:/app
    networks:
      - api-test-network
    deploy:
      resources:
        limits:
          cpus: '1'
          memory: 512M
        reservations:
          cpus: '0.5'
          memory: 256M
    restart: no
    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "3"

networks:
  api-test-network:
    driver: bridge