-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (44 loc) · 1.36 KB
/
docker-compose.yml
File metadata and controls
45 lines (44 loc) · 1.36 KB
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
38
39
40
41
42
43
44
45
services:
postgres:
image: postgres:13
environment:
- POSTGRES_DB=testdb
- POSTGRES_USER=testuser
- POSTGRES_PASSWORD=testpass
healthcheck:
test: ["CMD-SHELL", "pg_isready -U testuser -d testdb"]
interval: 5s
timeout: 5s
retries: 5
app:
build:
context: ../../../../../..
dockerfile: src/instrumentation/libraries/postgres/e2e-tests/esm-postgres/Dockerfile
args:
- CACHEBUST=${CACHEBUST:-1}
- TUSK_CLI_VERSION=${TUSK_CLI_VERSION:-latest}
environment:
- BENCHMARKS=${BENCHMARKS:-}
- BENCHMARK_DURATION=${BENCHMARK_DURATION:-5}
- BENCHMARK_WARMUP=${BENCHMARK_WARMUP:-3}
- PORT=3000
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- POSTGRES_DB=testdb
- POSTGRES_USER=testuser
- POSTGRES_PASSWORD=testpass
- TUSK_ANALYTICS_DISABLED=1
volumes:
# Mount SDK source for hot reload (this is what package.json expects)
- ../../../../../..:/sdk:ro
# Mount .tusk config to persist configuration
- ./.tusk/config.yaml:/app/.tusk/config.yaml:ro
# Persist traces and logs on host
- ./.tusk/traces:/app/.tusk/traces
- ./.tusk/logs:/app/.tusk/logs
# Mount app source for development
- ./src:/app/src
working_dir: /app
depends_on:
postgres:
condition: service_healthy