-
Notifications
You must be signed in to change notification settings - Fork 0
/
integration-compose.yml
66 lines (61 loc) · 1.46 KB
/
integration-compose.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3.8'
services:
oracle:
build:
context: .
dockerfile: ./integrationtest/Dockerfile
restart: always
environment:
- L1_URL=${L1_URL}
networks:
- primev_net
labels:
com.datadoghq.ad.check_names: '["openmetrics"]'
com.datadoghq.ad.init_configs: '[{}]'
com.datadoghq.ad.instances: |
[
{
"openmetrics_endpoint": "http://%%host%%:8080/metrics",
"namespace": "integrationtest",
"metrics": [
"mev_commit_oracle*",
"go*"
]
}
]
depends_on:
- oracle-db
oracle-db:
image: postgres:latest
restart: always
environment:
POSTGRES_DB: oracle_db
POSTGRES_USER: oracle_user
POSTGRES_PASSWORD: oracle_pass
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- primev_net
datadog-agent:
image: gcr.io/datadoghq/agent:latest
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /proc/:/host/proc/:ro
- /sys/fs/cgroup/:/host/sys/fs/cgroup:ro
environment:
- DD_API_KEY=${DD_KEY}
- DD_TAGS=env:test
- DD_SITE=datadoghq.com
- DD_LOGS_ENABLED=true
- DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL=true
- DD_CONTAINER_EXCLUDE="name:datadog-agent"
networks:
- primev_net
networks:
primev_net:
external: true
volumes:
postgres_data: