-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
57 lines (52 loc) · 1.29 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
54
55
56
version: '3'
networks:
minio_network:
services:
minio:
container_name: minio
image: minio/minio:latest
volumes:
- "${MINIO_STORAGE_LOCATION}:/data"
ports:
- "${MINIO_PORT}:9000"
networks:
- minio_network
restart: always
environment:
MINIO_ROOT_USER: "${MINIO_ROOT_USER}"
MINIO_ROOT_PASSWORD: "${MINIO_ROOT_PASSWORD}"
command: server /data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
minio-console:
container_name: minio-console
restart: always
image: minio/console:latest
ports:
- "${MINIO_CONSOLE_PORT}:9090"
networks:
- minio_network
command: server
environment:
- CONSOLE_MINIO_SERVER=http://minio:9000
depends_on:
- minio
minio-client:
container_name: minio-client
restart: always
image: minio/mc:latest
volumes:
- ./config:/root/.mc
depends_on:
- minio
networks:
- minio_network
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host rm minio;
/usr/bin/mc config host add --quiet --api s3v4 minio http://minio:9000 ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD};
sleep infinity;
"