- Updated .env.example with new service versions and added detailed configuration options for PostgreSQL, ClickHouse, MinIO, and Redis. - Enhanced README.md and README.zh.md for clearer setup instructions and environment variable descriptions. - Modified docker-compose.yaml to improve service definitions, health checks, and resource limits for all components. - Changed MinIO image to Chainguard's production-ready version and updated default credentials. - Improved health check commands for Phoenix service in docker-compose.yaml.
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
x-defaults: &defaults
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: 100m
|
|
max-file: "3"
|
|
|
|
services:
|
|
minio:
|
|
<<: *defaults
|
|
image: cgr.dev/chainguard/minio:${MINIO_VERSION:-0.20251015}
|
|
ports:
|
|
- "${MINIO_PORT_OVERRIDE_API:-9000}:9000"
|
|
- "${MINIO_PORT_OVERRIDE_WEBUI:-9001}:9001"
|
|
environment:
|
|
TZ: ${TZ:-UTC}
|
|
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin}
|
|
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-minioadmin}
|
|
volumes:
|
|
- minio_data:/data
|
|
command: server /data --console-address ':9001'
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
interval: 30s
|
|
timeout: 20s
|
|
retries: 5
|
|
start_period: 30s
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: ${MINIO_CPU_LIMIT:-1.0}
|
|
memory: ${MINIO_MEMORY_LIMIT:-1G}
|
|
reservations:
|
|
cpus: ${MINIO_CPU_RESERVATION:-0.5}
|
|
memory: ${MINIO_MEMORY_RESERVATION:-512M}
|
|
|
|
|
|
volumes:
|
|
minio_data:
|