-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (51 loc) · 1.63 KB
/
docker-compose.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
version: '3'
services:
postgres:
container_name: postgres
image: postgres:latest
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWD}
POSTGRES_DB: ${DB_NAME}
ports:
- "${DB_PORT}:${DB_PORT}"
#volumes:
# - ./db_init_user/:/docker-entrypoint-initdb.d/
# - pgdata:/var/lib/postgresql/data
networks:
- default
healthcheck:
test: ["CMD-SHELL", "pg_isready -h localhost -p ${DB_PORT} -U ${DB_USER}"]
interval: 10s
timeout: 5s
retries: 5
minio:
image: minio/minio:latest
container_name: minio
command: server /data --console-address ":9001"
ports:
- "${S3_DATA_PORT}:${S3_DATA_PORT}" # Порт для доступа к API MinIO
- "${S3_CONSOLE_PORT}:${S3_CONSOLE_PORT}" # Порт для веб-интерфейса MinIO Console
environment:
MINIO_ROOT_USER: ${S3_ROOT_USER}
MINIO_ROOT_PASSWORD: ${S3_ROOT_PASSWORD}
MINIO_CACHE_EXPIRY: ${MINIO_CACHE_TTL}
MINIO_USE_SSL: ${S3_USE_SSL}
MINIO_DEFAULT_BUCKETS: ${S3_DEFAULT_BUCKET}
MINIO_CACHE: /mnt/minio_cache
volumes:
- minio_data:/data # Хранилище данных MinIO
- minio_config:/root/.minio # Конфигурационные файлы MinIO
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
volumes:
# pgdata:
minio_data:
minio_config:
minio_cache:
networks:
default:
driver: bridge