github.com/kubeshop/testkube@v1.17.23/contrib/executor/tracetest/pkg/testing/docker-compose-tracetest-cloud.yaml (about) 1 version: '3' 2 services: 3 postgres: 4 image: postgres:15.2 5 environment: 6 POSTGRES_PASSWORD: postgres 7 POSTGRES_USER: postgres 8 healthcheck: 9 test: pg_isready -U "$$POSTGRES_USER" -d "$$POSTGRES_DB" 10 interval: 1s 11 timeout: 5s 12 retries: 60 13 14 cache: 15 healthcheck: 16 test: 17 - CMD 18 - redis-cli 19 - ping 20 timeout: 3s 21 interval: 1s 22 retries: 60 23 image: redis:6 24 restart: unless-stopped 25 26 demo-api: 27 depends_on: 28 cache: 29 condition: service_healthy 30 postgres: 31 condition: service_healthy 32 environment: 33 COLLECTOR_ENDPOINT: http://tracetest-agent:4317 34 DATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres?schema=public 35 NPM_RUN_COMMAND: api 36 POKE_API_BASE_URL: https://pokeapi.co/api/v2 37 REDIS_URL: cache 38 healthcheck: 39 test: 40 - CMD 41 - wget 42 - --spider 43 - localhost:8081 44 timeout: 3s 45 interval: 1s 46 retries: 60 47 image: kubeshop/demo-pokemon-api:latest 48 pull_policy: always 49 50 tracetest-agent: 51 environment: 52 TRACETEST_DEV: true 53 TRACETEST_API_KEY: ${TRACETEST_API_KEY} 54 image: kubeshop/tracetest-agent:latest