mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 12:14:18 +00:00
d2a264c9bb
The problem is that MinIO uses dynamic port for console address by default, which may be below ip_local_port_range, and in this case it ca be reused in a short time, sicne first MinIO allocates the socket, then close this socket, and only after try to bind to it. And even though this is a problem of MinIO I'm not a go developer to fix it. v2: use long notation of the 127.0.0.1 (that version of MinIO on CI cannot handle 127.1, while 2023-07-21T21-12-44Z can) Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
version: '2.3'
|
|
|
|
services:
|
|
minio1:
|
|
# Newer version of minio results in such errors:
|
|
# "AWSErrorMarshaller: Encountered AWSError 'InternalError': We encountered an internal error, please try again"
|
|
image: minio/minio:RELEASE.2021-09-23T04-46-24Z
|
|
volumes:
|
|
- data1-1:/data1
|
|
- ${MINIO_CERTS_DIR:-}:/certs
|
|
expose:
|
|
- ${MINIO_PORT:-9001}
|
|
environment:
|
|
MINIO_ACCESS_KEY: minio
|
|
MINIO_SECRET_KEY: minio123
|
|
MINIO_PROMETHEUS_AUTH_TYPE: public
|
|
command: server --console-address 127.0.0.1:19001 --address :9001 --certs-dir /certs /data1-1
|
|
depends_on:
|
|
- proxy1
|
|
- proxy2
|
|
|
|
# HTTP proxies for Minio.
|
|
proxy1:
|
|
image: clickhouse/s3-proxy
|
|
expose:
|
|
- "8080" # Redirect proxy port
|
|
- "80" # Reverse proxy port
|
|
- "443" # Reverse proxy port (secure)
|
|
|
|
proxy2:
|
|
image: clickhouse/s3-proxy
|
|
expose:
|
|
- "8080"
|
|
- "80"
|
|
- "443"
|
|
|
|
# Empty container to run proxy resolver.
|
|
resolver:
|
|
image: clickhouse/python-bottle
|
|
expose:
|
|
- "8080"
|
|
tty: true
|
|
depends_on:
|
|
- proxy1
|
|
- proxy2
|
|
|
|
volumes:
|
|
data1-1:
|