chore(compose):lab4 add MinIO service with volume and healthcheck

This commit is contained in:
Голиков Maximillian Антон
2026-10-21 12:45:26 +03:00
parent cbf553e183
commit f14111ccdf
3 changed files with 77 additions and 2 deletions
+37
View File
@@ -64,6 +64,33 @@ services:
networks:
- internal
minio:
image: pgsty/silo:RELEASE.2026-09-16T00-00-00Z
restart: unless-stopped
command: ["server", "/data"]
secrets:
- minio_root_user
- minio_root_password
environment:
MINIO_ROOT_USER_FILE: /run/secrets/minio_root_user
MINIO_ROOT_PASSWORD_FILE: /run/secrets/minio_root_password
MINIO_BROWSER: "off"
volumes:
- minio_data:/data
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 3s
retries: 10
start_period: 5s
deploy:
resources:
limits:
cpus: "${MINIO_CPUS:-0.5}"
memory: ${MINIO_MEMORY:-512M}
networks:
- internal
migrate:
build:
context: .
@@ -146,6 +173,7 @@ services:
memory: 128M
networks:
- internal
secrets:
postgres_password:
file: ./secrets/postgres_password
@@ -153,10 +181,19 @@ secrets:
file: ./secrets/database_url
cache_url:
file: ./secrets/cache_url
minio_root_user:
file: ./secrets/minio_root_user
minio_root_password:
file: ./secrets/minio_root_password
s3_access_key_id:
file: ./secrets/s3_access_key_id
s3_secret_access_key:
file: ./secrets/s3_secret_access_key
volumes:
postgres_data:
redis_data:
minio_data:
networks:
internal: