-
Notifications
You must be signed in to change notification settings - Fork 168
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
123 lines (119 loc) · 4.36 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
123 lines (119 loc) · 4.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
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
services:
chroma:
image: ghcr.io/chroma-core/chroma:1.0.0
restart: always
environment:
- IS_PERSISTENT=TRUE
volumes:
- chroma-data:/chroma/chroma/
ports:
- 8000:8000
networks:
- net
# postgres:
# image: ankane/pgvector:v0.5.0
# restart: always
# environment:
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
# - POSTGRES_DB=vector_store
# - PGPASSWORD=postgres
# logging:
# options:
# max-size: 10m
# max-file: "3"
# ports:
# - '5432:5432'
# healthcheck:
# test: "pg_isready -U postgres -d vector_store"
# interval: 2s
# timeout: 20s
# retries: 10
# pgadmin:
# container_name: pgadmin_container
# image: dpage/pgadmin4
# environment:
# PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-pgadmin4@pgadmin.org}
# PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
# volumes:
# - ./servers.json:/pgadmin4/servers.json
# ports:
# - "${PGADMIN_PORT:-5050}:80"
prometheus:
container_name: prometheus
image: prom/prometheus:v2.54.0 # https://hub.docker.com/r/prom/prometheus
extra_hosts: ['host.docker.internal:host-gateway']
command:
- --enable-feature=exemplar-storage
- --web.enable-remote-write-receiver
- --config.file=/etc/prometheus/prometheus.yml
volumes:
- prometheus:/prometheus
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
ports:
- "9090:9090"
grafana:
container_name: grafana
image: grafana/grafana:11.1.4 # https://hub.docker.com/r/grafana/grafana/tags and https://github.com/grafana/grafana/releases
extra_hosts: ['host.docker.internal:host-gateway']
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
volumes:
- ./docker/grafana/grafana.ini:/etc/grafana/grafana.ini:ro
- ./docker/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
- ./docker/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
- ./docker/grafana/provisioning/alerting:/etc/grafana/provisioning/alerting:ro
ports:
- "3000:3000"
tempo-init:
# Tempo runs as user 10001, and docker compose creates the volume as root.
# As such, we need to chown the volume in order for Tempo to start correctly.
# This should not be needed but this is the official solution recommended by Tempo maintainers
# See: https://github.com/grafana/tempo/blob/a21001a72a5865bfcfc1b0d2dfa30160c5a26103/example/docker-compose/local/docker-compose.yaml
# See: https://github.com/grafana/tempo/issues/1657
image: &tempoImage grafana/tempo:2.5.0 # https://hub.docker.com/r/grafana/tempo/tags and https://github.com/grafana/tempo/releases
user: root
entrypoint:
- "chown"
- "10001:10001"
- "/var/tempo"
volumes:
- tempo:/var/tempo
tempo:
container_name: tempo
image: *tempoImage
extra_hosts: ['host.docker.internal:host-gateway']
command: ['-config.file=/etc/tempo.yml']
depends_on: ['tempo-init']
volumes:
- tempo:/var/tempo
- ./docker/grafana/tempo.yml:/etc/tempo.yml:ro
ports:
- "3200:3200" # tempo
- "9411:9411" # zipkin
loki:
container_name: loki
image: grafana/loki:3.0.1 # https://hub.docker.com/r/grafana/loki/tags and https://github.com/grafana/loki/releases
extra_hosts: ['host.docker.internal:host-gateway']
command: ['-config.file=/etc/loki/local-config.yaml']
ports:
- "3100:3100"
maildev:
container_name: maildev
image: maildev/maildev:2.1.0 # https://hub.docker.com/r/maildev/maildev/tags
extra_hosts: [ 'host.docker.internal:host-gateway' ]
ports:
- "3001:1080"
- "25:1025"
volumes:
prometheus:
driver: local
tempo:
driver: local
chroma-data:
driver: local
networks:
net:
driver: bridge