-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-full.yml
173 lines (165 loc) · 4.75 KB
/
docker-compose-full.yml
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
version: '2.1'
volumes:
iox_data: {}
postgres_data: {}
grafana_data: {}
minio_data: {}
services:
nginx:
image: nginx:latest
container_name: nginx_iox
volumes:
- ./iox-nginx.conf:/etc/nginx/nginx.conf
ports:
- 8086:8086
expose:
- 8086
depends_on:
- iox
minio:
image: minio/minio
container_name: minio
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio_data:/data
environment:
- "MINIO_ROOT_USER=minio"
- "MINIO_ROOT_PASSWORD=minio123"
- "MINIO_ACCESS_KEY=minio"
- "MINIO_SECRET_KEY=minio123"
command:
- server
- --console-address
- ":9001"
- /data
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://minio:9000 minio minio123;
/usr/bin/mc mb myminio/iox;
/usr/bin/mc anonymous set public myminio/iox;
exit 0;
"
iox:
image: ghcr.io/metrico/influxdb-edge-musl:latest
container_name: iox
volumes:
- ./data:/data
environment:
- INFLUXDB_IOX_OBJECT_STORE=s3
- AWS_ACCESS_KEY_ID=minio
- AWS_SECRET_ACCESS_KEY=minio123
- AWS_DEFAULT_REGION=us-east-2
- AWS_ALLOW_HTTP=true
- AWS_ENDPOINT=http://minio:9000
- INFLUXDB_IOX_BUCKET=iox
- INFLUXDB_IOX_CATALOG_DSN=postgres://postgres@postgres:5432/iox
# - INFLUXDB_IOX_CATALOG_DSN=sqlite:///data/catalog.sqlite
- INFLUXDB_IOX_ROUTER_HTTP_BIND_ADDR=iox:8080
- INFLUXDB_IOX_ROUTER_GRPC_BIND_ADDR=iox:8081
- INFLUXDB_IOX_QUERIER_GRPC_BIND_ADDR=iox:8082
- INFLUXDB_IOX_INGESTER_GRPC_BIND_ADDR=iox:8083
- INFLUXDB_IOX_COMPACTOR_GRPC_BIND_ADDR=iox:8084
- INFLUXDB_IOX_COMPACTION_MEMORY_BUDGET_BYTES=3000000000
- INFLUXDB_IOX_COMPACTION_MAX_COMPACTING_FILES=100
- INFLUXDB_IOX_COMPACTION_MIN_ROWS_PER_RECORD_BATCH_TO_PLAN=32768
- INFLUXDB_IOX_COMPACTION_MAX_DESIRED_FILE_SIZE_BYTES=104857600
- INFLUXDB_IOX_COMPACTION_PERCENTAGE_MAX_FILE_SIZE=5
- INFLUXDB_IOX_GC_OBJECTSTORE_SLEEP_INTERVAL_MINUTES=1
- INFLUXDB_IOX_GC_PARQUETFILE_CUTOFF=30m
- INFLUXDB_IOX_GC_OBJECTSTORE_CUTOFF=30m
- LOG_FILTER=error
restart: unless-stopped
expose:
- 8080
- 8081
- 8082
- 8083
- 8084
ports:
- 8080:8080
- 8082:8082
links:
- postgres:postgres
- minio:minio
depends_on:
- postgres
- minio
iox-gc:
image: ghcr.io/metrico/influxdb-edge-musl:latest
container_name: iox-gc
volumes:
- ./data:/data
environment:
- INFLUXDB_IOX_OBJECT_STORE=s3
- AWS_ACCESS_KEY_ID=minio
- AWS_SECRET_ACCESS_KEY=minio123
- AWS_ALLOW_HTTP=true
- AWS_ENDPOINT=http://minio:9000
- INFLUXDB_IOX_BUCKET=iox
- INFLUXDB_IOX_CATALOG_DSN=postgres://postgres@postgres:5432/iox
# - INFLUXDB_IOX_CATALOG_DSN=sqlite:///data/catalog.sqlite
- INFLUXDB_IOX_ROUTER_HTTP_BIND_ADDR=iox:8080
- INFLUXDB_IOX_ROUTER_GRPC_BIND_ADDR=iox:8081
- INFLUXDB_IOX_QUERIER_GRPC_BIND_ADDR=iox:8082
- INFLUXDB_IOX_INGESTER_GRPC_BIND_ADDR=iox:8083
- INFLUXDB_IOX_COMPACTOR_GRPC_BIND_ADDR=iox:8084
- INFLUXDB_IOX_COMPACTION_MEMORY_BUDGET_BYTES=3000000000
- INFLUXDB_IOX_COMPACTION_MAX_COMPACTING_FILES=100
- INFLUXDB_IOX_COMPACTION_MIN_ROWS_PER_RECORD_BATCH_TO_PLAN=32768
- INFLUXDB_IOX_COMPACTION_MAX_DESIRED_FILE_SIZE_BYTES=104857600
- INFLUXDB_IOX_COMPACTION_PERCENTAGE_MAX_FILE_SIZE=5
- INFLUXDB_IOX_GC_OBJECTSTORE_SLEEP_INTERVAL_MINUTES=1
- INFLUXDB_IOX_GC_PARQUETFILE_CUTOFF=30m
- INFLUXDB_IOX_GC_OBJECTSTORE_CUTOFF=30m
- LOG_FILTER=info
restart: unless-stopped
links:
- postgres:postgres
- minio:minio
depends_on:
- postgres
- minio
command:
- /influxdb3
- run
- garbage-collector
postgres:
image: postgres
container_name: postgres
expose:
- 5432
volumes:
- ./pgdata:/var/lib/postgresql/data/pgdata
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_DB=iox
- PGDATA=/var/lib/postgresql/data/pgdata
fluxpipe:
image: ghcr.io/metrico/fluxpipe:latest
container_name: fluxpipe
expose:
- 8086
environment:
- IOX_SERVER=iox
grafana:
image: grafana/grafana:latest
ports:
- 3000:3000
environment:
- INFLUX_HOST=iox:8082
- INFLUX_TOKEN=${INFLUXDB_TOKEN}
- INFLUX_ORG=company
- INFLUX_BUCKET=sensors
- GF_INSTALL_PLUGINS=influxdata-flightsql-datasource
volumes:
- ./demo/grafana/datasources:/etc/grafana/provisioning/datasources
- grafana_data:/var/lib/grafana/
restart: always
depends_on:
- iox