-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
136 lines (122 loc) · 3.42 KB
/
Copy pathcompose.yml
File metadata and controls
136 lines (122 loc) · 3.42 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
services:
database:
image: bitnami/postgresql:16.3.0
environment:
POSTGRESQL_PASSWORD: uh
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
etcd:
image: bitnami/etcd:3.5.12
environment:
ALLOW_NONE_AUTHENTICATION: yes
database-init:
image: registry.ultihash.io/stable/database-init:1.3.1
depends_on:
- database
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: uh
SUPER_USER_USERNAME: root
SUPER_USER_ACCESS_KEY_ID: TEST-USER
SUPER_USER_SECRET_KEY: SECRET
DB_USER: postgres
DB_HOST: database
DB_PORT: 5432
PGPASSWORD: uh
coordinator:
image: registry.ultihash.io/stable/core:1.3.1
depends_on:
- etcd
environment:
UH_BACKEND_HOST: 6jdzxvbv3g.execute-api.eu-central-1.amazonaws.com
UH_CUSTOMER_ID: ${UH_CUSTOMER_ID}
UH_ACCESS_TOKEN: ${UH_ACCESS_TOKEN}
UH_LOG_LEVEL: INFO
UH_DB_USER: postgres
UH_DB_HOSTPORT: database:5432
UH_DB_PASS: uh
command: ["/usr/bin/bash", "-l", "-c", "sleep 10 && uh-cluster --registry etcd:2379 coordinator"]
storage:
image: registry.ultihash.io/stable/core:1.3.1
depends_on:
- etcd
environment:
UH_LOG_LEVEL: INFO
UH_OTEL_ENDPOINT: http://otel:4317
command: ["/usr/bin/bash", "-l", "-c", "sleep 10 && uh-cluster --registry etcd:2379 storage"]
deduplicator:
image: registry.ultihash.io/stable/core:1.3.1
depends_on:
- etcd
- storage
environment:
UH_LOG_LEVEL: INFO
UH_OTEL_ENDPOINT: http://otel:4317
command: ["/usr/bin/bash", "-l", "-c", "sleep 10 && uh-cluster --registry etcd:2379 deduplicator"]
entrypoint:
image: registry.ultihash.io/stable/core:1.3.1
depends_on:
- etcd
- storage
- deduplicator
environment:
UH_LOG_LEVEL: INFO
UH_OTEL_ENDPOINT: http://otel:4317
UH_DB_HOSTPORT: database:5432
UH_DB_USER: postgres
UH_DB_PASS: uh
configs:
- source: policies_config
target: /etc/uh/policies.json
command: ["/usr/bin/bash", "-l", "-c", "sleep 15 && uh-cluster --registry etcd:2379 entrypoint"]
ports:
- 8080:8080
otel:
image: otel/opentelemetry-collector-contrib:0.118.0
restart: on-failure
configs:
- source: otel_collector_config
target: /etc/otelcol-contrib/config.yaml
configs:
otel_collector_config:
content: |
receivers:
otlp:
protocols:
grpc:
endpoint: 'otel:4317'
http:
processors:
batch:
send_batch_size: 10000
timeout: 10s
exporters:
debug: {}
otlphttp/uptrace:
endpoint: https://collector.ultihash.io
headers: { 'uptrace-dsn': https://${UH_MONITORING_TOKEN}@collector.ultihash.io }
service:
pipelines:
metrics:
receivers: [otlp]
processors: [batch]
exporters: [otlphttp/uptrace]
logs:
receivers: [otlp]
processors: [batch]
exporters: [otlphttp/uptrace]
policies_config:
content: |
{
"Version": "2012-10-17",
"Statement": {
"Sid": "AllowAllForAnybody",
"Effect": "Allow",
"Action": "*",
"Principal": "*",
"Resource": "*"
}
}