-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yaml
107 lines (104 loc) · 2.85 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
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/single-process-config.yaml --log.level=debug
environment:
minio_host: siren_nginx_1
volumes:
- ./docker/single_process_cortex.yaml:/etc/single-process-config.yaml
- ./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/single-process-config.yaml --log.level=debug
environment:
minio_host: siren_nginx_1
volumes:
- ./docker/single_process_cortex.yaml:/etc/single-process-config.yaml
- ./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/nginx.conf:/etc/nginx/nginx.conf
networks:
- siren
depends_on:
- cortex-am
- cortex-all
# Collector
otel-collector:
image: otel/opentelemetry-collector-contrib:0.66.0
command: [ "--config=/etc/otel-collector-config.yaml" ]
volumes:
- ./docker/otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- "55678:55678" # Opencensus port
volumes:
siren_dbdata:
data1-1:
networks:
siren:
driver: bridge