docker-compose.yml
802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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_test.py:/app/api_test.py
- ./api_cases.xlsx:/app/api_cases.xlsx:ro
- ./env_config.py:/app/env_config.py:ro
- ./reports:/app/reports
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