Files
nahodka-back/docker-compose.yaml
2026-07-10 01:27:30 +03:00

43 lines
1.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: '3.8'
services:
postgres:
image: postgres:15
environment:
POSTGRES_DB: nahodka
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
ports:
- "5432:5432"
redis:
image: redis:7
ports:
- "6379:6379"
minio:
# Используемый образ Docker. Рекомендуется указывать конкретный тег для стабильности.
image: minio/minio:RELEASE.2024-04-18T19-09-19Z
container_name: minio-example
command: server /data --address ":9010" --console-address ":9011"
restart: unless-stopped
environment:
MINIO_ACCESS_KEY: admin
MINIO_SECRET_KEY: admin123
# Проброс портов с хост-машины в контейнер.
ports:
- "9010:9010" # API port
- "9011:9011" # Console port
volumes:
- minio-data:/data
deploy:
resources:
limits:
memory: 1024m
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
volumes:
minio-data: