-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (61 loc) · 1.49 KB
/
docker-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
67
version: '3.8'
services:
oracle:
build:
context: .
dockerfile: ./Dockerfile
restart: always
environment:
- L1_URL=${L1_URL}
- ORACLE_USER=${ORACLE_USER}
- ORACLE_PASS=${ORACLE_PASS}
labels:
com.datadoghq.ad.check_names: '["openmetrics"]'
com.datadoghq.ad.init_configs: '[{}]'
com.datadoghq.ad.instances: |
[
{
"openmetrics_endpoint": "http://%%host%%:8080/metrics",
"namespace": "production",
"metrics": [
"mev_commit_oracle*",
"go*"
]
}
]
depends_on:
- oracle-db
networks:
- primev_net
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
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:production
- 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: