forked from goto/siren
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
119 lines (117 loc) · 3.08 KB
/
docker-compose.yaml
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
version: "3"
services:
db:
image: "postgres:13"
container_name: "siren_postgres"
ports:
- "5432:5432"
volumes:
- ./tmp/siren_dbdata:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_DB: "siren_development"
POSTGRES_HOST_AUTH_METHOD: "trust"
cortex-am:
image: quay.io/cortexproject/cortex:master-63703f5
container_name: "siren_cortex_am"
command: -target=alertmanager -config.file=/etc/cortex/single_process_cortex.yaml --log.level=debug
environment:
minio_host: siren_nginx_1
volumes:
- ./docker:/etc/cortex
- ./tmp/cortex/alertmanager/fake:/tmp/cortex/alertmanager/fake
extra_hosts:
- "cortex.siren_nginx_1:127.0.0.1"
networks:
- siren
depends_on:
- minio1
cortex-all:
image: quay.io/cortexproject/cortex:master-63703f5
container_name: "siren_cortex_all"
command: -target=all -config.file=/etc/cortex/single_process_cortex.yaml --log.level=debug
environment:
minio_host: siren_nginx_1
volumes:
- ./docker:/etc/cortex
- ./tmp/cortex/rules/fake:/tmp/cortex/rules/fake
extra_hosts:
- "cortex.siren_nginx_1:127.0.0.1"
networks:
- siren
depends_on:
- minio1
- cortex-am
minio1:
image: quay.io/minio/minio:RELEASE.2022-09-07T22-25-02Z
volumes:
- data1-1:/data1
ports:
- "9000:9000"
- "9001:9001"
networks:
- siren
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
MINIO_DOMAIN: localhost
command: server /data1 --console-address ":9001"
healthcheck:
test:
[
"CMD",
"curl",
"-f",
"http://localhost:9000/minio/health/live"
]
interval: 30s
timeout: 20s
retries: 3
createbuckets:
image: minio/mc:RELEASE.2022-08-28T20-08-11Z
networks:
- siren
depends_on:
- minio1
entrypoint: >
/bin/sh -c " /usr/bin/mc alias set myminio http://minio1:9000 minio minio123; /usr/bin/mc rm -r --force cortex; /usr/bin/mc mb myminio/cortex; /usr/bin/mc ls myminio/cortex; /usr/bin/mc policy get myminio/cortex; "
nginx:
image: nginx:1.23
container_name: siren_nginx
restart: unless-stopped
ports:
- 9009:9009
volumes:
- ./docker:/etc/nginx
networks:
- siren
depends_on:
- cortex-am
- cortex-all
# Collector
otel-collector:
image: otel/opentelemetry-collector-contrib:0.93.0
command: [ "--config=/etc/otel/otel-collector-config.yaml" ]
volumes:
- ./docker:/etc/otel
ports:
- "55678:55678" # Opencensus port`
- "4317:4317" # Otel grpc port`
grafana:
image: grafana/grafana
container_name: grafana
restart: unless-stopped
environment:
GF_PATHS_PROVISIONING: /etc/grafana/provisioning
ports:
- '3003:3000'
volumes:
- ./docker/grafana-dashboards:/etc/grafana/provisioning/dashboards
- grafana-storage:/var/lib/grafana
volumes:
siren_dbdata:
data1-1:
grafana-storage:
networks:
siren:
driver: bridge