-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
145 lines (133 loc) · 3.18 KB
/
Copy pathcompose.yml
File metadata and controls
145 lines (133 loc) · 3.18 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
services:
app:
build:
context: .
dockerfile: docker/app/Dockerfile
networks:
- agent-lab
ports:
- "18000:8000"
env_file:
- .env
environment:
DOCKER: 1
OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector:4318"
depends_on:
otel-collector:
condition: service_started
postgres:
condition: service_healthy
postgres-setup:
condition: service_completed_successfully
redis:
condition: service_healthy
headless-shell:
image: chromedp/headless-shell:latest
networks:
- agent-lab
ports:
- "9222:9222"
otel-collector:
image: otel/opentelemetry-collector-contrib:latest
networks:
- agent-lab
ports:
- "4317:4317"
- "4318:4318"
volumes:
- ./otel/grafana/otel-config.yml:/etc/otelcol/config.yaml
command: [ "--config=/etc/otelcol/config.yaml" ]
depends_on:
grafana:
condition: service_started
tempo:
condition: service_started
loki:
condition: service_started
prometheus:
image: prom/prometheus:latest
networks:
- agent-lab
ports:
- "9090:9090"
volumes:
- ./otel/grafana/prometheus.yml:/etc/prometheus/prometheus.yml
command: [ "--config.file=/etc/prometheus/prometheus.yml", "--web.enable-remote-write-receiver" ]
loki:
image: grafana/loki:latest
networks:
- agent-lab
ports:
- "3100:3100"
tempo:
image: grafana/tempo:2.4.2
networks:
- agent-lab
ports:
- "3200:3200"
volumes:
- ./otel/grafana/tempo.yml:/etc/tempo/tempo.yml
command: ["-config.file=/etc/tempo/tempo.yml"]
grafana:
image: grafana/grafana:latest
networks:
- agent-lab
ports:
- "3000:3000"
volumes:
- ./otel/grafana/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml
postgres:
image: pgvector/pgvector:pg16
ports:
- "5432:5432"
networks:
- agent-lab
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
postgres-setup:
image: pgvector/pgvector:pg16
networks:
- agent-lab
environment:
PGPASSWORD: postgres
command: >
bash -c '
echo "CREATE DATABASE agent_lab;" | psql -h postgres -U postgres
echo "CREATE DATABASE agent_lab_checkpoints;" | psql -h postgres -U postgres
echo "CREATE DATABASE agent_lab_vectors;" | psql -h postgres -U postgres
'
depends_on:
postgres:
condition: service_healthy
redis:
image: redis:alpine
ports:
- "6379:6379"
networks:
- agent-lab
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 3
vault:
image: hashicorp/vault:1.18
ports:
- "8200:8200"
networks:
- agent-lab
environment:
VAULT_DEV_ROOT_TOKEN_ID: "dev-only-token"
VAULT_DEV_LISTEN_ADDRESS: "0.0.0.0:8200"
cap_add:
- IPC_LOCK
entrypoint: vault server -dev
networks:
agent-lab:
name: agent-lab